From fd76cabd01368eb91b98ce5eadf587020c9b68ac Mon Sep 17 00:00:00 2001 From: Donald Cheng Hong Zou Date: Sat, 25 Dec 2021 17:37:43 -0500 Subject: [PATCH] Update wgd.sh --- src/wgd.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wgd.sh b/src/wgd.sh index 9593721..e2ff122 100755 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -106,7 +106,8 @@ update_wgd() { read up if [ "$up" = "Y" ]; then printf "| Shutting down WGDashboard... |\n" - kill "$(ps aux | grep "[p]ython3 $app_name" | awk '{print $2}')" + if check_wgd_status; then + stop_wgd mv wgd.sh wgd.sh.old printf "| Downloading %s from GitHub... |\n" "$new_ver" git stash > /dev/null 2>&1