summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseth <[email protected]>2022-08-06 04:39:20 -0400
committerseth <[email protected]>2022-08-06 04:39:20 -0400
commita2ff6e94b6ba21818613611cb3fed15e56f4894d (patch)
tree201e2666e9d0c7fc7572b2872aa351e18a15adcf
parentf36a74c805cdbacaa671fd4019204ed3889bae55 (diff)
don't use absolute paths
-rwxr-xr-xbin/hiccup3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/hiccup b/bin/hiccup
index 2f0dc99..d65b650 100755
--- a/bin/hiccup
+++ b/bin/hiccup
@@ -58,7 +58,7 @@ class CurrentDistro:
return subprocess.run(
cmd,
check=True,
- executable=os.path.join("/usr/bin/", executable),
+ executable=executable,
shell=True)
def __run_items(self, msg: str, dct: dict, name_as_cmd=False):
@@ -120,6 +120,7 @@ def get_os_release():
p: subprocess.Popen = subprocess.Popen(
cmd,
shell=True,
+ executable='bash',
stdout=subprocess.PIPE)
return str(p.communicate()[0], 'UTF-8').strip()