Skip to content

Commit

Permalink
remove escape and unwrap command from inside bash -l -c
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandro-fazzi committed Sep 18, 2018
1 parent ed9235b commit de8eed2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/wordmove/hook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def self.run(commands, options, simulate = false)
return true if simulate

stdout, stderr, exit_code =
copier.exec!("bash -l -c 'cd #{wordpress_path} && #{Shellwords.escape(command)}'")
copier.exec!("cd #{wordpress_path} && #{command}")

if exit_code.zero?
logger.task_step false, "Output: #{stdout}"
Expand Down
2 changes: 1 addition & 1 deletion lib/wordmove/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Wordmove
VERSION = "3.2.3pre".freeze
VERSION = "3.2.3pre2".freeze
end

0 comments on commit de8eed2

Please sign in to comment.