Skip to content

Commit

Permalink
fixed subprocess commands for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSpittlemeister committed Apr 30, 2020
1 parent 876a355 commit 10fd89a
Show file tree
Hide file tree
Showing 5 changed files with 251 additions and 253 deletions.
2 changes: 1 addition & 1 deletion borca/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '2020.2'
__version__ = '2020.5'

from borca.orchestrator import Orchestrator
4 changes: 2 additions & 2 deletions borca/execution/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ def run(self) -> Tuple[int, int, int]:
self.__logger.debug(f"Running command: {command}")

if self.__config["verbosity"] == 0:
proc = subprocess.run(command, capture_output=True) # nosec
proc = subprocess.run(command, shell=True, capture_output=True) # nosec
else:
proc = subprocess.run(command) # nosec
proc = subprocess.run(command, shell=True) # nosec

try:
proc.check_returncode()
Expand Down
Loading

0 comments on commit 10fd89a

Please # to comment.