lib/fulmar/shell.rb in fulmar-shell-1.6.5 vs lib/fulmar/shell.rb in fulmar-shell-1.6.6

- old
+ new

@@ -3,11 +3,11 @@ # This shell is part of the fulmar deployment tools # it can be used stand-alone, though module Fulmar # Implements simple access to shell commands class Shell - VERSION = '1.6.5' + VERSION = '1.6.6' attr_accessor :debug, :last_output, :last_error, :quiet, :strict attr_reader :path DEFAULT_OPTIONS = { @@ -39,10 +39,10 @@ path = @path end options[:error_message] ||= 'Last shell command returned an error.' - command.unshift "cd #{path}" + command.unshift "cd \"#{path}\"" # invoke a login shell? shell_command = shell_command(options[:login]) @clean_environment << 'bundler' if options[:escape_bundler]