Created
June 18, 2015 07:51
-
-
Save aloker/4d53960d0dc9e038522e to your computer and use it in GitHub Desktop.
A possible fix for Albacore #167
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/albacore/cross_platform_cmd.rb b/lib/albacore/cross_platform_cmd.rb | |
index dd7f58c..acec3d0 100644 | |
--- a/lib/albacore/cross_platform_cmd.rb | |
+++ b/lib/albacore/cross_platform_cmd.rb | |
@@ -191,8 +191,8 @@ module Albacore | |
cmd = ::Rake::Win32.windows? ? 'where' : 'which' | |
parameters = [] | |
- parameters << Paths.normalise_slashes(file) if dir == '.' | |
- parameters << Paths.normalise_slashes("#{dir}:#{file}") unless dir == '.' | |
+ parameters << Paths.normalise_slashes("\"#{file}\"") if dir == '.' | |
+ parameters << Paths.normalise_slashes("\"#{dir}\":\"#{file}\"") unless dir == '.' | |
parameters << '2> nul' if ::Rake::Win32.windows? | |
cmd, parameters = Paths.normalise cmd, parameters | |
cmd = "#{cmd} #{parameters.join(' ')}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A fix for Albacore/albacore#167
Adds quotes to the paths passed to where/which.