|
|
|
@ -188,6 +188,7 @@ def run_command(cmd: Command):
|
|
|
|
|
process = subprocess.run(local_command)
|
|
|
|
|
if process.returncode != 0:
|
|
|
|
|
# TODO: Print in color (red?)
|
|
|
|
|
# FIXME: This kind-of implements 'set -e', but doesn't allow to skip commands in the same hunk
|
|
|
|
|
answer = input(f"Command {process.args} failed with return code {process.returncode}. Continue? ")
|
|
|
|
|
if not answer.startswith(('Y', 'y', 'a', 'A')): # We are Czech, so "ano" is a valid answer :-)
|
|
|
|
|
print("Bailing out")
|
|
|
|
|