aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apps/UnsetEnv.hs
diff options
context:
space:
mode:
Diffstat (limited to 'apps/UnsetEnv.hs')
-rw-r--r--apps/UnsetEnv.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/UnsetEnv.hs b/apps/UnsetEnv.hs
index 6f47473..e4cbeac 100644
--- a/apps/UnsetEnv.hs
+++ b/apps/UnsetEnv.hs
@@ -44,8 +44,9 @@ unsetEnv options = wipe
varName = optName options
forAllUsers = optGlobal options
- env | forAllUsers = Environment.AllUsers
- | otherwise = Environment.CurrentUser
+ env = if forAllUsers
+ then Environment.AllUsers
+ else Environment.CurrentUser
skipPrompt = optYes options
wipe = if skipPrompt