From 168412c2e76393cb2243fb820091675a89332207 Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Fri, 16 Aug 2024 17:32:34 -0400 Subject: [PATCH] Update wgd.sh --- src/wgd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wgd.sh b/src/wgd.sh index ebfc73d..c85fe10 100755 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -160,10 +160,10 @@ _installPythonPip(){ fi ;; centos|fedora|redhat|rhel) - if command -v dnf &> /dev/null; then + if [ "$pythonExecutable" = "python3" ]; then { sudo dnf install -y python3-pip; printf "\n\n"; } >> ./log/install.txt else - { sudo yum install -y python3-pip printf "\n\n"; } >> ./log/install.txt + { sudo dnf install -y ${pythonExecutable}-pip; printf "\n\n"; } >> ./log/install.txt fi ;; *)