diff options
| author | seth <[email protected]> | 2022-08-06 04:39:20 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2022-08-06 04:39:20 -0400 |
| commit | a2ff6e94b6ba21818613611cb3fed15e56f4894d (patch) | |
| tree | 201e2666e9d0c7fc7572b2872aa351e18a15adcf | |
| parent | f36a74c805cdbacaa671fd4019204ed3889bae55 (diff) | |
don't use absolute paths
| -rwxr-xr-x | bin/hiccup | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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() |
