Lazy commit on bender.
This commit is contained in:
parent
672fd2190a
commit
bb0313bebc
@ -98,7 +98,7 @@ def parse_yaml(file_path):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def execute_command(command, cwd = None, dump_error = True):
|
def execute_command(command, cwd = None, dump_error = True):
|
||||||
command = f"/bin/bash -c '{command}'"
|
command = f"/usr/bin/env bash -c '{command}'"
|
||||||
try:
|
try:
|
||||||
if cwd != None:
|
if cwd != None:
|
||||||
result = subprocess.run(command, cwd=cwd, shell=True, check=True, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
result = subprocess.run(command, cwd=cwd, shell=True, check=True, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user