1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-25 02:50:08 +03:00

Fix bash syntax error

This commit is contained in:
Daniel Molina 2010-11-17 18:36:52 +01:00
parent ffce3651c0
commit 8d6573b3ed

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)