From 13c5bd45f901a1552d2387ebc01739640d48c0f0 Mon Sep 17 00:00:00 2001 From: Donald Cheng Hong Zou Date: Thu, 2 Sep 2021 22:52:22 -0400 Subject: [PATCH] Update wgd.sh --- src/wgd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wgd.sh b/src/wgd.sh index 07c5dca8..0c49b80b 100755 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -55,7 +55,7 @@ start_wgd_debug() { } update_wgd() { - new_ver=$(python3 -c "import json; import urllib.request; data = urllib.request.urlopen('https://api.github.com/repos/donaldzou/wireguard-dashboard/releases/latest').read(); output = json.loads(data);print(output[0]['tag_name'])") + new_ver=$(python3 -c "import json; import urllib.request; data = urllib.request.urlopen('https://api.github.com/repos/donaldzou/wireguard-dashboard/releases/latest').read(); output = json.loads(data);print(output['tag_name'])") printf "%s\n" "$dashes" printf "Are you sure you want to update to the %s? (Y/N): " "$new_ver" read up