Update web-vault-update.sh

This commit is contained in:
tteckster 2022-07-17 15:22:50 -04:00 committed by GitHub
parent 7bc51b49ae
commit f902657e28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
clear
VWRELEASE=$(curl -s https://api.github.com/repos/dani-garcia/bw_web_builds/releases/latest \ VWRELEASE=$(curl -s https://api.github.com/repos/dani-garcia/bw_web_builds/releases/latest \
| grep "tag_name" \ | grep "tag_name" \
| awk '{print substr($2, 2, length($2)-3) }') \ | awk '{print substr($2, 2, length($2)-3) }') \
@ -19,7 +20,6 @@ echo -e "${BL}
${VWRELEASE} UPDATE ${VWRELEASE} UPDATE
${CL}" ${CL}"
} }
clear
update_info update_info
while true; do while true; do
read -p "This will Update Web-Vault to $VWRELEASE. Proceed(y/n)?" yn read -p "This will Update Web-Vault to $VWRELEASE. Proceed(y/n)?" yn