lib/coderunner/class_methods.rb in coderunner-0.12.7 vs lib/coderunner/class_methods.rb in coderunner-0.12.8

- old
+ new

@@ -628,10 +628,10 @@ copts[:Y] ||= DEFAULT_COMMAND_OPTIONS[:Y] if DEFAULT_COMMAND_OPTIONS[:Y] if copts[:Y] and copts[:Y] =~ /:/ set_class_defaults(copts) copts[:running_remotely] = true else - copts[:Y].gsub!(/~/, ENV['HOME']) if copts[:Y] + copts[:Y] = copts[:Y].gsub(/~/, ENV['HOME']) if copts[:Y] Dir.chdir((copts[:Y] or Dir.pwd)) do set_runner_defaults(copts) # ep DEFAULT_RUNNER_OPTIONS end end