Skip to content

Commit

Permalink
version 0.5.4
Browse files Browse the repository at this point in the history
- returncode is count of non-zero returncodes for job
  • Loading branch information
elesiuta committed Jan 24, 2021
1 parent fbe9aaf commit 0ddf931
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions baka.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def main() -> int:
proc_err = sys.stderr
proc = subprocess.run(cmd, stdout=proc_out, stderr=proc_err)
if proc.returncode != 0:
return_code = proc.returncode
return_code += 1
if capture_output:
if verbosity in ["debug", "info"]:
sys.stdout.buffer.write(proc.stdout)
Expand All @@ -316,9 +316,7 @@ def main() -> int:
print(line)
else:
# run command normally
proc = subprocess.run(cmd)
if proc.returncode != 0:
return_code = proc.returncode
subprocess.run(cmd)
except Exception as e:
error_message = "Error baka line: %s For: %s %s %s" % (sys.exc_info()[2].tb_lineno, shlex.join(cmd), type(e).__name__, e.args)
command_output.append(error_message)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="bakabakabaka",
version="0.5.3",
version="0.5.4",
description="Baka Admin's Kludge Assistant",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 0ddf931

Please sign in to comment.