From a2ff6e94b6ba21818613611cb3fed15e56f4894d Mon Sep 17 00:00:00 2001 From: seth Date: Sat, 6 Aug 2022 04:39:20 -0400 Subject: don't use absolute paths --- bin/hiccup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') 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() -- cgit v1.2.3