diff options
author | 2016-01-11 11:18:58 +0100 | |
---|---|---|
committer | 2016-01-11 11:18:58 +0100 | |
commit | c86a7e34614e5cbc7f3fec0bed4652d112ae8895 (patch) | |
tree | c5d319aac14a61a2c16d4b247e5cbb38ea7f93a9 /Utility/Rsync.hs | |
parent | 7078469251930a4dae68eec36fc8ff6d5e49963a (diff) |
Added new toMSYS2Path function for use with rsync on Windows.
Diffstat (limited to 'Utility/Rsync.hs')
-rw-r--r-- | Utility/Rsync.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Utility/Rsync.hs b/Utility/Rsync.hs index 3aaf9281b..d3fe98120 100644 --- a/Utility/Rsync.hs +++ b/Utility/Rsync.hs @@ -54,16 +54,16 @@ rsyncUseDestinationPermissions = Param "--chmod=ugo=rwX" rsync :: [CommandParam] -> IO Bool rsync = boolSystem "rsync" . rsyncParamsFixup -{- On Windows, rsync is from Cygwin, and expects to get Cygwin formatted +{- On Windows, rsync is from msys2, and expects to get msys2 formatted - paths to files. (It thinks that C:foo refers to a host named "C"). - Fix up the Params appropriately. -} rsyncParamsFixup :: [CommandParam] -> [CommandParam] #ifdef mingw32_HOST_OS rsyncParamsFixup = map fixup where - fixup (File f) = File (toCygPath f) + fixup (File f) = File (toMSYS2Path f) fixup (Param s) - | rsyncUrlIsPath s = Param (toCygPath s) + | rsyncUrlIsPath s = Param (toMSYS2Path s) fixup p = p #else rsyncParamsFixup = id |