From e6bc0c9a11d774ae24aaf29cab9cd0c36da2069e Mon Sep 17 00:00:00 2001 From: Gusher123 <31935813+Gusher123@users.noreply.github.com> Date: Mon, 2 Nov 2020 21:08:35 +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 d3d2919..28a3134 100755 --- a/x230/x230_skulls.sh +++ b/x230/x230_skulls.sh @@ -94,8 +94,8 @@ if [ "$request_update" -gt 0 ] ; then read -r -p "Download it to the parent directory now? [y/N] " response case "$response" in [yY][eE][sS]|[yY]) - UPSTREAM_URL=$(curl -s https://api.github.com/repos/merge/skulls/releases/latest | grep browser_download_url | cut -d'"' -f4 | head -n 1) - UPSTREAM_URL_SHA256=$(curl -s https://api.github.com/repos/merge/skulls/releases/latest | grep browser_download_url | cut -d'"' -f4 | head -n 3 | tail -n 1) + UPSTREAM_URL=$(curl -s https://api.github.com/repos/merge/skulls/releases | grep browser_download_url | grep skulls-x230- | cut -d'"' -f4 | head -n 1) + UPSTREAM_URL_SHA256=$(curl -s https://api.github.com/repos/merge/skulls/releases | grep browser_download_url | grep skulls-x230- | cut -d'"' -f4 | head -n 3 | tail -n 1) cd .. curl -LO ${UPSTREAM_URL} curl -LO ${UPSTREAM_URL_SHA256}