From 4777da48e6f19e4e60fa21dd01345422b302004d Mon Sep 17 00:00:00 2001 From: billz Date: Wed, 10 Mar 2021 06:29:11 +0000 Subject: [PATCH] Update get_release() --- installers/raspbian.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/installers/raspbian.sh b/installers/raspbian.sh index 031f6d56..e61be385 100755 --- a/installers/raspbian.sh +++ b/installers/raspbian.sh @@ -181,11 +181,11 @@ function _display_welcome() { # Fetch latest release from GitHub or RaspAP Installer API function _get_release() { if [ "$insiders" == 1 ]; then - readonly RASPAP_INSIDERS_LATEST=$(curl -s "https://install.raspap.com/repos/RaspAP/raspap-insiders/releases/latest/" | grep -Po '"tag_name": "\K.*?(?=")' ) - readonly RASPAP_RELEASE="${RASPAP_INSIDERS_LATEST} Insiders" + 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 - readonly RASPAP_LATEST=$(curl -s "https://api.github.com/repos/$repo/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")' ) - readonly RASPAP_RELEASE="${RASPAP_LATEST}" + RASPAP_LATEST=$(curl -s "https://api.github.com/repos/$repo/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")' ) + RASPAP_RELEASE="${RASPAP_LATEST}" fi }