From 23d1ab83c74835cd727c293046bc669272715ab5 Mon Sep 17 00:00:00 2001 From: billz Date: Thu, 7 Nov 2019 10:41:56 +0000 Subject: [PATCH] Update version method --- installers/raspbian.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/installers/raspbian.sh b/installers/raspbian.sh index a3627262..5f1c81f7 100755 --- a/installers/raspbian.sh +++ b/installers/raspbian.sh @@ -8,7 +8,7 @@ # Assume "yes" as answer to all prompts and run non-interactively UPDATE_URL="https://raw.githubusercontent.com/billz/raspap-webgui/master/" -VERSION=$(curl -s https://api.github.com/repos/billz/raspap-webgui/releases/latest | jq -r .tag_name) +VERSION=$(curl -s "https://api.github.com/repos/billz/raspap-webgui/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")' ) USAGE="Usage: -y, --yes, --assume-yes, -c --cert" assume_yes=0 @@ -65,6 +65,11 @@ function install_warning() { echo -e "\033[1;33mWarning: $*\033[m" } +# Outputs a RaspAP divider +function install_divider() { + echo -e "\033[1;32m***************************************************************$*\033[m" +} + function update_system_packages() { install_log "Updating sources" sudo apt-get update || install_error "Unable to update package list"