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:
commit
fcc1056ca1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue