aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apps/SetEnv.hs
diff options
context:
space:
mode:
Diffstat (limited to 'apps/SetEnv.hs')
-rw-r--r--apps/SetEnv.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/SetEnv.hs b/apps/SetEnv.hs
index 54a3cde..3b88e7c 100644
--- a/apps/SetEnv.hs
+++ b/apps/SetEnv.hs
@@ -50,8 +50,9 @@ setEnv options = engrave varValue
varValue = optValue options
forAllUsers = optGlobal options
- env | forAllUsers = Environment.AllUsers
- | otherwise = Environment.CurrentUser
+ env = if forAllUsers
+ then Environment.AllUsers
+ else Environment.CurrentUser
skipPrompt = optYes options
engrave value = if skipPrompt