From 3f7ed3138b0747563b83e10a8e842811f7f27c1c Mon Sep 17 00:00:00 2001 From: Gusher123 <31935813+Gusher123@users.noreply.github.com> Date: Mon, 2 Nov 2020 01:35:08 +0100 Subject: [PATCH] Update x230_skulls.sh Latest release might be for the x230t, not the x230. --- x230/x230_skulls.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x230/x230_skulls.sh b/x230/x230_skulls.sh index 40ee1df..d3d2919 100755 --- a/x230/x230_skulls.sh +++ b/x230/x230_skulls.sh @@ -72,9 +72,9 @@ if [ "$request_update" -gt 0 ] ; then CURRENT_VERSION=$(head -2 NEWS | egrep -o "([0-9]{1,}\.)+[0-9]{1,}") - UPSTREAM_FILE=$(curl -s https://api.github.com/repos/merge/skulls/releases/latest | grep browser_download_url | cut -d'"' -f4 | cut -d'/' -f9 | head -n 1) + UPSTREAM_FILE=$(curl -s https://api.github.com/repos/merge/skulls/releases | grep browser_download_url | grep skulls-x230- | cut -d'"' -f4 | cut -d'/' -f9 | head -n 1) - UPSTREAM_VERSION=$(curl -s https://api.github.com/repos/merge/skulls/releases/latest | grep browser_download_url | cut -d'"' -f4 | cut -d'/' -f9 | head -n 1 | egrep -o "([0-9]{1,}\.)+[0-9]{1,}") + UPSTREAM_VERSION=$(curl -s https://api.github.com/repos/merge/skulls/releases | grep browser_download_url | grep skulls-x230- | cut -d'"' -f4 | cut -d'/' -f9 | head -n 1 | egrep -o "([0-9]{1,}\.)+[0-9]{1,}") UPSTREAM_X230=$(echo ${UPSTREAM_FILE} | grep x230) if [[ -z "$UPSTREAM_X230" ]] ; then