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 <maxnbk@users.noreply.github.com>
  • Loading branch information
maxnbk committed Sep 6, 2023
1 parent 354f8aa commit 0087825
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 0087825

Please sign in to comment.