Skip to content

Commit

Permalink
fix unsetenv erroraction silentlycontinue
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Mackenzie <[email protected]>
  • Loading branch information
maxnbk committed Jul 11, 2023
1 parent 3b9733c commit 7ccc15d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rezplugins/shell/_utils/powershell_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def appendenv(self, key, value):

def unsetenv(self, key):
self._addline(
'Remove-Item -ErrorAction -SilentlyContinue "Env:{0}"'.format(key)
'Remove-Item -ErrorAction SilentlyContinue "Env:{0}"'.format(key)
)

def resetenv(self, key, value, friends=None):
Expand Down

0 comments on commit 7ccc15d

Please sign in to comment.