Skip to content
Browse files

Don't shell escape the :asset_env variable in the precompile task

  • Loading branch information...
1 parent 0d76734 commit 6443e614ed67eb49a7d9d13471d4fbf9cda76f51 @carsomyr carsomyr committed Jan 10, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/capistrano/recipes/deploy/assets.rb
View
4 lib/capistrano/recipes/deploy/assets.rb
@@ -45,7 +45,7 @@
task :precompile, :roles => assets_role, :except => { :no_release => true } do
run <<-CMD.compact
cd -- #{latest_release.shellescape} &&
- #{rake} RAILS_ENV=#{rails_env.shellescape} #{asset_env.shellescape} assets:precompile &&
+ #{rake} RAILS_ENV=#{rails_env.shellescape} #{asset_env} assets:precompile &&
cp -- #{shared_path.shellescape}/assets/manifest.yml #{current_release.shellescape}/assets_manifest.yml
CMD
end
@@ -154,7 +154,7 @@
run <<-CMD.compact
cd -- #{previous_release.shellescape} &&
cp -f -- #{previous_manifest.shellescape} #{shared_path.shellescape}/assets/manifest.yml &&
- #{rake} RAILS_ENV=#{rails_env.shellescape} #{asset_env.shellescape} assets:precompile:nondigest
+ #{rake} RAILS_ENV=#{rails_env.shellescape} #{asset_env} assets:precompile:nondigest
CMD
end
end

0 comments on commit 6443e61

Please sign in to comment.
Something went wrong with that request. Please try again.