From 008782519d2982cc123e38c95c9a050d0f0d57b5 Mon Sep 17 00:00:00 2001 From: Stephen Mackenzie Date: Tue, 11 Jul 2023 09:29:55 -0400 Subject: [PATCH] fix unsetenv erroraction silentlycontinue Signed-off-by: Stephen Mackenzie --- src/rezplugins/shell/_utils/powershell_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rezplugins/shell/_utils/powershell_base.py b/src/rezplugins/shell/_utils/powershell_base.py index 6f250368c..18759d102 100644 --- a/src/rezplugins/shell/_utils/powershell_base.py +++ b/src/rezplugins/shell/_utils/powershell_base.py @@ -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):