1
0
Fork 0
mirror of https://github.com/ArtemSBulgakov/buildozer-action.git synced 2024-08-16 10:09:52 +02:00

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
This commit is contained in:
Artem Bulgakov 2020-12-24 20:22:59 +03:00
parent 57b6d0500d
commit abad880b7e

View file

@ -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)