aboutsummaryrefslogtreecommitdiff
path: root/GitAnnexShell.hs
diff options
context:
space:
mode:
Diffstat (limited to 'GitAnnexShell.hs')
-rw-r--r--GitAnnexShell.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/GitAnnexShell.hs b/GitAnnexShell.hs
index 15be51180..d9b60c0f6 100644
--- a/GitAnnexShell.hs
+++ b/GitAnnexShell.hs
@@ -132,5 +132,5 @@ checkNotReadOnly cmd
checkEnv :: String -> IO ()
checkEnv var =
- whenM (not . null <$> catchDefaultIO (getEnv var) "") $
+ whenM (not . null <$> catchDefaultIO "" (getEnv var)) $
error $ "Action blocked by " ++ var