From ef1c3a6fd8777ddf8a8372c45a506249a08a703e Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Fri, 8 Feb 2013 11:18:28 +1300 Subject: [PATCH] Don't shellescape latest_release. It can be nil during --dry-run --- lib/capistrano/recipes/deploy/assets.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capistrano/recipes/deploy/assets.rb b/lib/capistrano/recipes/deploy/assets.rb index db0a86d6..8f9a7752 100644 --- a/lib/capistrano/recipes/deploy/assets.rb +++ b/lib/capistrano/recipes/deploy/assets.rb @@ -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