summaryrefslogtreecommitdiff
path: root/Utility.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Utility.hs')
-rw-r--r--Utility.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Utility.hs b/Utility.hs
index 47c059ded..4e56289e2 100644
--- a/Utility.hs
+++ b/Utility.hs
@@ -111,7 +111,7 @@ boolSystem command params = do
{- Escapes a filename to be safely able to be exposed to the shell. -}
shellEscape :: FilePath -> String
-shellEscape f = "'" ++ quote ++ "'"
+shellEscape f = "'" ++ escaped ++ "'"
where
-- replace ' with '"'"'
- quote = join "'\"'\"'" $ split "'" f
+ escaped = join "'\"'\"'" $ split "'" f