summaryrefslogtreecommitdiff
path: root/Command/SetKey.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/SetKey.hs')
-rw-r--r--Command/SetKey.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Command/SetKey.hs b/Command/SetKey.hs
index 388392cd6..025fb74d6 100644
--- a/Command/SetKey.hs
+++ b/Command/SetKey.hs
@@ -35,7 +35,8 @@ perform file = do
-- rather than simply calling moveToObjectDir
ok <- getViaTmp key $ \dest -> do
if dest /= file
- then liftIO $ boolSystem "mv" [file, dest]
+ then liftIO $
+ boolSystem "mv" [utilityEscape file, utilityEscape dest]
else return True
if ok
then return $ Just $ cleanup