Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #4 from gitkeeper/master

#system_path had problems combining long and fragmented PATHs
  • Loading branch information...
commit f99d85ae35636ede74c367bc4bcfbd2627806bfd 2 parents ba9e1f4 + 76e9bdb
@nilbus nilbus authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/capistrano/ext/windows_server.rb
View
8 lib/capistrano/ext/windows_server.rb
@@ -20,11 +20,13 @@ def latest_release
strip_cygdrive current_path
end
+ # Probably not compatible with multiple roles with different PATHs
def system_path
return @system_path if @system_path
- run 'echo "/bin:/usr/bin:$PATH"' do |channel, stream, data|
- return @system_path = data.strip # Probably not compatible with multiple roles with different PATHs
- end
+
+ @system_path = "/bin:" + "/usr/bin:"
+ run 'echo $PATH' { |channel, stream, data| @system_path << data.strip }
+ @system_path
end
task :path do
Please sign in to comment.
Something went wrong with that request. Please try again.