From d24532c82472c4d11947a0afe8941f930664b0ac Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 7 Jan 2018 00:34:00 +0100 Subject: Fix pattern in CI script that grabs release and runs it --- scripts/latest.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/latest.sh b/scripts/latest.sh index 7119530..dc5c345 100755 --- a/scripts/latest.sh +++ b/scripts/latest.sh @@ -7,8 +7,8 @@ PACKAGE=stylish-haskell echo Downloading and running $PACKAGE... RELEASES=$(curl --silent https://github.com/jaspervdj/$PACKAGE/releases) -URL=https://github.com/$(echo $RELEASES | grep -o '\"[^\"]*-x86_64-linux\.tar\.gz\"' | sed s/\"//g | head -n1) -VERSION=$(echo $URL | sed -e 's/.*-\([\.0-9]\+\)-x86_64-linux\.tar\.gz/\1/') +URL=https://github.com/$(echo $RELEASES | grep -o '\"[^\"]*-linux-x86_64\.tar\.gz\"' | sed s/\"//g | head -n1) +VERSION=$(echo $URL | sed -e 's/.*-\([\.0-9]\+\)-linux-x86_64\.tar\.gz/\1/') TEMP=$(mktemp --directory .$PACKAGE-XXXXX) cleanup(){ -- cgit v1.2.3