summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-08-02 12:37:45 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-08-02 12:37:45 -0400
commit8cac5b32de73316064499380387857ce388ec31c (patch)
tree1833b49c11405fdbcac3675b6e7786fb1e4a1f04
parent250a25c8572e557772a9973542f9cfca6ac10b9b (diff)
fix Windows breakage
-rw-r--r--Utility/SafeCommand.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Utility/SafeCommand.hs b/Utility/SafeCommand.hs
index d24c75dd4..978d4d9c7 100644
--- a/Utility/SafeCommand.hs
+++ b/Utility/SafeCommand.hs
@@ -37,7 +37,9 @@ toCommand = concatMap unwrap
| isAlphaNum h || h `elem` pathseps = [s]
| otherwise = ["./" ++ s]
unwrap (File s) = [s]
- pathseps = [pathSeparator, '.']
+ -- '/' is explicitly included because it's an alternative
+ -- path separator on Windows.
+ pathseps = [pathSeparator, './']
{- Run a system command, and returns True or False
- if it succeeded or failed.