diff --git a/lib/capistrano/tasks/bundler.cap b/lib/capistrano/tasks/bundler.cap index 39a95f4c..7f854e19 100644 --- a/lib/capistrano/tasks/bundler.cap +++ b/lib/capistrano/tasks/bundler.cap @@ -90,7 +90,8 @@ namespace :bundler do DESC task :map_bins do fetch(:bundle_bins).each do |command| - SSHKit.config.command_map.prefix[command.to_sym].push("bundle exec") + prefix = SSHKit.config.command_map.prefix[command.to_sym] + prefix.push("bundle exec") unless prefix.include?("bundle exec") end end