Skip to content

Commit d24532c

Browse files
lwmjaspervdj
authored andcommitted
Fix pattern in CI script that grabs release and runs it
1 parent c604df8 commit d24532c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/latest.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ PACKAGE=stylish-haskell
77
echo Downloading and running $PACKAGE...
88

99
RELEASES=$(curl --silent https://github.com/jaspervdj/$PACKAGE/releases)
10-
URL=https://github.com/$(echo $RELEASES | grep -o '\"[^\"]*-x86_64-linux\.tar\.gz\"' | sed s/\"//g | head -n1)
11-
VERSION=$(echo $URL | sed -e 's/.*-\([\.0-9]\+\)-x86_64-linux\.tar\.gz/\1/')
10+
URL=https://github.com/$(echo $RELEASES | grep -o '\"[^\"]*-linux-x86_64\.tar\.gz\"' | sed s/\"//g | head -n1)
11+
VERSION=$(echo $URL | sed -e 's/.*-\([\.0-9]\+\)-linux-x86_64\.tar\.gz/\1/')
1212
TEMP=$(mktemp --directory .$PACKAGE-XXXXX)
1313

1414
cleanup(){

0 commit comments

Comments
 (0)