Skip to content
Snippets Groups Projects
Commit f1162c14 authored by Yohan Jarosz's avatar Yohan Jarosz
Browse files

add enter flag at the end

parent 4cc6bd0a
No related branches found
No related tags found
No related merge requests found
......@@ -91,11 +91,11 @@ if __name__ == '__main__':
# CL
cmd = ['docker', 'run'] + mount_points + envs
# add container name and commands to pass to snakemake
cmd += [container_name] + args['COMMANDS']
# if --enter flag is specified, change the command
if args['--enter']:
cmd += ['-it /bin/bash']
# add container name and commands to pass to snakemake
cmd += [container_name] + args['COMMANDS']
# parse CL correctly
cmd = shlex.split(' '.join(cmd))
print("Executing", '"', ' '.join(cmd), '"')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment