From 8ef78878fd9194eb01fc1012feb4d5479f3cadeb Mon Sep 17 00:00:00 2001 From: Bill Zimmerman Date: Thu, 7 Nov 2019 10:26:25 +0100 Subject: [PATCH] Replace jq with grep. Resolves #427 --- installers/raspbian.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installers/raspbian.sh b/installers/raspbian.sh index f5ad7923..f2c310e2 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.*?(?=")' ) wget -q ${UPDATE_URL}/installers/common.sh -O /tmp/raspapcommon.sh source /tmp/raspapcommon.sh && rm -f /tmp/raspapcommon.sh