tweak
This commit is contained in:
parent
d04bfceaad
commit
c6206c4560
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue