1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Merge pull request #1182 from mikz/patch-2

Properly shellescape file in remote_file
This commit is contained in:
Lee Hambley 2014-11-17 10:35:47 +01:00
commit fcc1056ca1

View file

@ -26,7 +26,7 @@ module Capistrano
file = shared_path.join(t.name)
on roles(target_roles) do
unless test "[ -f #{file} ]"
unless test "[ -f #{file.to_s.shellescape} ]"
info "Uploading #{prerequisite_file} to #{file}"
upload! File.open(prerequisite_file), file
end