diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-07-12 17:10:29 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-07-12 17:10:29 +0300 |
commit | c7d5766463e5e99fcd2352c7177cf057c1971615 (patch) | |
tree | 04e2c34217dd498111965a17b9cafcb633ed5c13 /apps/SetEnv.hs | |
parent | minimize stack.yaml (diff) | |
download | windows-env-c7d5766463e5e99fcd2352c7177cf057c1971615.tar.gz windows-env-c7d5766463e5e99fcd2352c7177cf057c1971615.zip |
refactoring
Diffstat (limited to '')
-rw-r--r-- | apps/SetEnv.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/SetEnv.hs b/apps/SetEnv.hs index d3439ae..fad7526 100644 --- a/apps/SetEnv.hs +++ b/apps/SetEnv.hs @@ -39,7 +39,7 @@ main = execParser parser >>= setEnv fullDesc <> progDesc "Set environment variables" setEnv :: Options -> IO () -setEnv options = Environment.saveToRegistryWithPrompt env (name options) (value options) +setEnv options = Environment.engraveWithPrompt env (name options) (value options) where - env | global options = Environment.AllUsersEnvironment - | otherwise = Environment.CurrentUserEnvironment + env | global options = Environment.AllUsers + | otherwise = Environment.CurrentUser |