1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-06-30 22:50:14 +02:00

Update wgd.sh

This commit is contained in:
Donald Cheng Hong Zou 2021-12-25 17:37:43 -05:00
parent fcf9300a49
commit fd76cabd01

View File

@ -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