From abad880b7ef05e8e1c8fa92e78c1c68e87d9b1f1 Mon Sep 17 00:00:00 2001 From: Artem Bulgakov Date: Thu, 24 Dec 2020 20:22:59 +0300 Subject: [PATCH] Add feature to run multiple commands `shell=True` is better than splitting by spaces and semicolons because it allows user to use quouted strings in the command. Fixes #4 --- entrypoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.py b/entrypoint.py index 8b0035e..14055ba 100755 --- a/entrypoint.py +++ b/entrypoint.py @@ -132,7 +132,7 @@ def apply_patches(): def run_command(command): # Run command - retcode = subprocess.check_call(command.split()) + retcode = subprocess.check_call(command, shell=True) if retcode: print(f'::error::Error while executing command "{command}"') exit(1)