Skip to content

Commit

Permalink
Fixed bug when no workdir is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
edyan committed Dec 27, 2019
1 parent f091d78 commit 590fa44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stakkr/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def run_commands(ctx: Context, extra_args: tuple, tty: bool):
commands = ctx.obj['STAKKR'].get_config()['aliases'][ctx.command.name]['exec']
for command in commands:
user = command['user'] if 'user' in command else 'root'
workdir = command['workdir'] if 'workdir' in command else '/'
workdir = command['workdir'] if 'workdir' in command else None
container = command['container']
args = command['args'] + list(extra_args) if extra_args is not None else []

Expand Down

0 comments on commit 590fa44

Please sign in to comment.