We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6bddcb commit 78eb720Copy full SHA for 78eb720
scripts/smart_dispatch.py
@@ -65,7 +65,7 @@ def main():
65
# Add redirect for output and error logs
66
for i, command in enumerate(commands):
67
# Change directory before executing command
68
- commands[i] = 'cd {cwd}; '.format(cwd=os.getcwd()) + commands[i]
+ commands[i] = 'cd "{cwd}"; '.format(cwd=os.getcwd()) + commands[i]
69
# Log command's output and command's error
70
log_filename = os.path.join(path_job_logs, smartdispatch.generate_name_from_command(command, max_length_arg=30))
71
commands[i] += ' 1>> "{output_log}"'.format(output_log=log_filename + ".o")
0 commit comments