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:
parent
57b6d0500d
commit
abad880b7e
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ def apply_patches():
|
||||||
|
|
||||||
def run_command(command):
|
def run_command(command):
|
||||||
# Run command
|
# Run command
|
||||||
retcode = subprocess.check_call(command.split())
|
retcode = subprocess.check_call(command, shell=True)
|
||||||
if retcode:
|
if retcode:
|
||||||
print(f'::error::Error while executing command "{command}"')
|
print(f'::error::Error while executing command "{command}"')
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
Loading…
Reference in a new issue