We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14d0136 commit a2547e9Copy full SHA for a2547e9
lifecycle/ak.py
@@ -1,15 +1,17 @@
1
"""Wrapper for lifecycle/ak, to be installed by poetry"""
2
3
-from os import system
+from os import system, waitstatus_to_exitcode
4
from pathlib import Path
5
-from sys import argv
+from sys import argv, exit
6
7
8
def main():
9
"""Wrapper around ak bash script"""
10
current_path = Path(__file__)
11
args = " ".join(argv[1:])
12
- system(f"{current_path.parent}/ak {args}") # nosec
+ res = system(f"{current_path.parent}/ak {args}") # nosec
13
+ exit_code = waitstatus_to_exitcode(res)
14
+ exit(exit_code)
15
16
17
if __name__ == "__main__":
0 commit comments