summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLuke Murphy <lwm@users.noreply.github.com>2018-01-07 00:34:00 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2018-01-07 00:34:00 +0100
commitd24532c82472c4d11947a0afe8941f930664b0ac (patch)
tree78e7dfc53a8d2e15096952d48fccbe16161909fd
parentc604df8f0582b6b3b85c5df60ecc280fc8deb923 (diff)
downloadstylish-haskell-d24532c82472c4d11947a0afe8941f930664b0ac.tar.gz
Fix pattern in CI script that grabs release and runs it
-rwxr-xr-xscripts/latest.sh4
1 files 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(){