diff options
author | Luke Murphy <lwm@users.noreply.github.com> | 2018-01-07 00:34:00 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2018-01-07 00:34:00 +0100 |
commit | d24532c82472c4d11947a0afe8941f930664b0ac (patch) | |
tree | 78e7dfc53a8d2e15096952d48fccbe16161909fd | |
parent | c604df8f0582b6b3b85c5df60ecc280fc8deb923 (diff) | |
download | stylish-haskell-d24532c82472c4d11947a0afe8941f930664b0ac.tar.gz |
Fix pattern in CI script that grabs release and runs it
-rwxr-xr-x | scripts/latest.sh | 4 |
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(){ |