From 58ecae11622b196f9c4b6dfd129ab4348a21fe6c Mon Sep 17 00:00:00 2001 From: Donald Cheng Hong Zou Date: Wed, 5 May 2021 15:09:34 -0400 Subject: [PATCH] v2.0-beta-6 Commit --- src/wgd.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wgd.sh b/src/wgd.sh index ce0d43e..7828002 100644 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -55,11 +55,12 @@ update_wgd() { printf "%s\n" "$dashes" printf "| Downloading %s from GitHub... |\n" "$new_ver" printf "%s\n" "$dashes" - git pull https://github.com/donaldzou/wireguard-dashboard.git $new_ver > /dev/null 2>&1 + git pull https://github.com/donaldzou/wireguard-dashboard.git $new_ver --force > /dev/null 2>&1 printf "| Update Successfully! |\n" printf "%s\n" "$dashes" printf "| Now you can start the dashboard with >> sh wgd.sh start |\n" - printf "%s\n" "$dashes" + printf "%s\n" "$dashes" + exit 1 else printf "%s\n" "$dashes" printf "Cancel update. \n"