diff options
author | Joey Hess <joey@kitenet.net> | 2013-08-02 12:37:45 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-08-02 12:37:45 -0400 |
commit | 8cac5b32de73316064499380387857ce388ec31c (patch) | |
tree | 1833b49c11405fdbcac3675b6e7786fb1e4a1f04 | |
parent | 250a25c8572e557772a9973542f9cfca6ac10b9b (diff) |
fix Windows breakage
-rw-r--r-- | Utility/SafeCommand.hs | 4 |
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. |