We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbdfe14 commit 5503e27Copy full SHA for 5503e27
scripts/latest.sh
@@ -7,7 +7,9 @@ PACKAGE=stylish-haskell
7
echo Downloading and running $PACKAGE...
8
9
RELEASES=$(curl --silent https://github.com/haskell/$PACKAGE/releases)
10
-URL=https://github.com/$(echo $RELEASES | grep -o '\"[^\"]*-linux-x86_64\.tar\.gz\"' | sed s/\"//g | head -n1)
+ASSETS_URL=https://github.com/haskell/stylish-haskell/releases/expanded_assets/$(echo $RELEASES | grep -o 'v[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+' | head -n1)
11
+ASSETS=$(curl --silent $ASSETS_URL)
12
+URL=https://github.com/$(echo $ASSETS | grep -o '\"[^\"]*-linux-x86_64\.tar\.gz\"' | sed s/\"//g | head -n1)
13
VERSION=$(echo $URL | sed -e 's/.*-\(v[\.0-9]\+-linux-x86_64\)\.tar\.gz/\1/')
14
TEMP=$(mktemp --directory .$PACKAGE-XXXXX)
15
0 commit comments