1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-11-22 07:10:09 +01:00

v2.0-beta-6 Commit

This commit is contained in:
Donald Cheng Hong Zou 2021-05-05 15:09:34 -04:00
parent 8777da10e4
commit 58ecae1162

View File

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