Fix bash syntax error

This commit is contained in:
Daniel Molina committed 2010-11-17 18:36:52 +01:00
1 parent ffce3651c0
commit 8d6573b3ed
1 file changed
+1 -1
+1 -1
View File
@@ -153,7 +153,7 @@ class RemotesCommand < SSHCommand
def self.run(command, host, remote_dir, logger=nil, stdin=nil)
cmd_file = command.split(' ')[0]
cmd_string = "'if [ -x \"#{cmd_file}\" ]; then; #{command}; else;\
cmd_string = "'if [ -x \"#{cmd_file}\" ]; then #{command}; else\
exit #{MAGIC_RC}; fi'"
cmd = self.new(cmd_string, host, logger, stdin)