1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 11:37:24 +00:00

Update w/ api.raspap.com

This commit is contained in:
billz 2021-03-21 17:32:51 +00:00
parent 9d00d50313
commit 0c056b3833

View File

@ -183,7 +183,7 @@ function _display_welcome() {
function _get_release() {
RASPAP_LATEST=$(curl -s "https://api.github.com/repos/$repo/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")' )
if [ "$insiders" == 1 ]; then
RASPAP_INSIDERS_LATEST=$(curl -s "https://install.raspap.com/repos/RaspAP/raspap-insiders/releases/latest/" | grep -Po '"tag_name": "\K.*?(?=")' )
RASPAP_INSIDERS_LATEST=$(curl -s "https://api.raspap.com/repos/RaspAP/raspap-insiders/releases/latest/" | grep -Po '"tag_name": "\K.*?(?=")' )
RASPAP_RELEASE="${RASPAP_INSIDERS_LATEST} Insiders"
else
RASPAP_RELEASE="${RASPAP_LATEST}"