aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apps/RemovePath.hs
diff options
context:
space:
mode:
Diffstat (limited to 'apps/RemovePath.hs')
-rw-r--r--apps/RemovePath.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/RemovePath.hs b/apps/RemovePath.hs
index 2956517..eb1cb00 100644
--- a/apps/RemovePath.hs
+++ b/apps/RemovePath.hs
@@ -63,7 +63,9 @@ removePath options = do
skipPrompt = optYes options
- removePathFrom profile = Env.query profile varName >>= either ignoreMissing (doRemovePathFrom profile)
+ removePathFrom profile = do
+ oldValue <- Env.query profile varName
+ either ignoreMissing (doRemovePathFrom profile) oldValue
ignoreMissing e
| isDoesNotExistError e = return ()