aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/RemovePath.hs
diff options
context:
space:
mode:
Diffstat (limited to 'app/RemovePath.hs')
-rw-r--r--app/RemovePath.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/RemovePath.hs b/app/RemovePath.hs
index a8bf56d..56ea66f 100644
--- a/app/RemovePath.hs
+++ b/app/RemovePath.hs
@@ -72,7 +72,8 @@ removePath options = runExceptT doRemovePath >>= either ioError return
removePathFrom profile = do
oldValue <- WindowsEnv.query profile varName
let expandable = WindowsEnv.valueExpandable oldValue
- let split = WindowsEnv.pathSplit $ WindowsEnv.valueString oldValue
+ let joined = WindowsEnv.valueString oldValue
+ let split = WindowsEnv.pathSplit joined
let remaining = filter (flip notElem pathsToRemove) split
when (length split /= length remaining) $ do
let newValue = WindowsEnv.Value expandable (WindowsEnv.pathJoin remaining)