lib/rundock/backend.rb in rundock-1.0.5 vs lib/rundock/backend.rb in rundock-1.0.6
- old
+ new
@@ -55,10 +55,10 @@
command = "cd #{Shellwords.escape(exec_options[:cwd])} && #{command}" if exec_options[:cwd]
command = "sudo -H -u #{Shellwords.escape(user)} -- /bin/sh -c #{command}" if exec_options[:user]
Logger.debug(%(Start executing: "#{command}"))
- return nil if options[:dry_run]
+ return nil if exec_options[:dry_run]
result = @backend.run_command(command)
exit_status = result.exit_status
Logger.formatter.indent do