diff --git a/installers/raspbian.sh b/installers/raspbian.sh index e61be385..63a43a11 100755 --- a/installers/raspbian.sh +++ b/installers/raspbian.sh @@ -180,11 +180,11 @@ function _display_welcome() { # Fetch latest release from GitHub or RaspAP Installer API 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_RELEASE="${RASPAP_INSIDERS_LATEST} Insiders" else - RASPAP_LATEST=$(curl -s "https://api.github.com/repos/$repo/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")' ) RASPAP_RELEASE="${RASPAP_LATEST}" fi }