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

Don't shellescape latest_release. It can be nil during --dry-run

This commit is contained in:
Nathan Broadbent 2013-02-08 11:18:28 +13:00
parent 1d392aa1e5
commit ef1c3a6fd8

View file

@ -44,7 +44,7 @@ namespace :deploy do
DESC
task :precompile, :roles => assets_role, :except => { :no_release => true } do
run <<-CMD.compact
cd -- #{latest_release.shellescape} &&
cd -- #{latest_release} &&
#{rake} RAILS_ENV=#{rails_env.to_s.shellescape} #{asset_env} assets:precompile &&
cp -- #{shared_path.shellescape}/assets/manifest.yml #{current_release.shellescape}/assets_manifest.yml
CMD