aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
Diffstat (limited to 'gn3')
-rw-r--r--gn3/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/commands.py b/gn3/commands.py
index 14bd295..459ccee 100644
--- a/gn3/commands.py
+++ b/gn3/commands.py
@@ -78,6 +78,6 @@ def run_cmd(cmd: str) -> Dict:
"""Run CMD and return the CMD's status code and output as a dict"""
results = subprocess.run(cmd, capture_output=True, shell=True, check=False)
out = str(results.stdout, 'utf-8')
- if results.returncode > 0: # Error!
+ if results.returncode < 0: # Error!
out = str(results.stderr, 'utf-8')
return {"code": results.returncode, "output": out}