From b9832542fb3effdb822a829b6eb7f2023cd3d880 Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Fri, 16 Aug 2024 17:24:50 -0400 Subject: [PATCH] Update wgd.sh --- src/wgd.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wgd.sh b/src/wgd.sh index 459efb0..ebfc73d 100755 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -72,7 +72,7 @@ _determineOS(){ printf "%s\n" "$helpMsg" kill $TOP_PID fi - printf "[WGDashboard] OS: |%s|\n" "$OS" + printf "[WGDashboard] OS: %s\n" "$OS" } _installPython(){ @@ -105,7 +105,7 @@ _installPythonVenv(){ ubuntu|debian) { sudo apt update ; sudo apt-get install -y python3-venv; printf "\n\n"; } &>> ./log/install.txt ;; - centos|fedora|redhat|rehl) + centos|fedora|redhat|rhel) if command -v dnf &> /dev/null; then { sudo dnf install -y python3-virtualenv; printf "\n\n"; } >> ./log/install.txt else @@ -123,7 +123,7 @@ _installPythonVenv(){ ubuntu|debian) { sudo apt-get update; sudo apt-get install ${pythonExecutable}-venv; } &>> ./log/install.txt ;; - centos|fedora|redhat|rehl) + centos|fedora|redhat|rhel) if command -v dnf &> /dev/null; then { sudo dnf install -y ${pythonExecutable}-virtualenv; printf "\n\n"; } >> ./log/install.txt else @@ -159,7 +159,7 @@ _installPythonPip(){ { sudo apt update ; sudo apt-get install -y ${pythonExecutable}-distutil python3-pip; printf "\n\n"; } &>> ./log/install.txt fi ;; - centos|fedora|redhat|rehl) + centos|fedora|redhat|rhel) if command -v dnf &> /dev/null; then { sudo dnf install -y python3-pip; printf "\n\n"; } >> ./log/install.txt else