diff --git a/CHANGELOG.md b/CHANGELOG.md index df026517..5137315e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ appear at the top. * Add your entries below here, remember to credit yourself however you want to be credited! + * Do not prefix `exec` command + [PR #378](https://github.com/capistrano/sshkit/pull/378) @dreyks ## [1.11.4][] (2016-11-02) diff --git a/lib/sshkit/command_map.rb b/lib/sshkit/command_map.rb index c4766659..f85b93f7 100644 --- a/lib/sshkit/command_map.rb +++ b/lib/sshkit/command_map.rb @@ -62,7 +62,7 @@ def clear def defaults Hash.new do |hash, command| - if %w{if test time}.include? command.to_s + if %w{if test time exec}.include? command.to_s hash[command] = command.to_s else hash[command] = "/usr/bin/env #{command}"