We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1933af7 commit d133a39Copy full SHA for d133a39
1 file changed
test/prism.sh
@@ -25,7 +25,8 @@ elif [ "$UNAME" = "Linux" ] ; then
25
fi
26
27
28
-#LATEST=$(curl -s https://api.github.com/repos/stoplightio/prism/tags | grep -Eo '"name":.*?[^\\]",' | head -n 1 | sed 's/[," ]//g' | cut -d ':' -f 2)
+LATEST=$(curl -s https://api.github.com/repos/stoplightio/prism/tags | grep -Eo '"name":.*?[^\\]",' | head -n 1 | sed 's/[," ]//g' | cut -d ':' -f 2)
29
+echo "Latest: $LATEST"
30
LATEST="v0.1.5"
31
URL="https://github.com/stoplightio/prism/releases/download/v0.1.5/prism_$PLATFORM"
32
DEST=./prism/bin/prism
@@ -34,6 +35,7 @@ if [ -z $LATEST ] ; then
34
35
echo "Error requesting. Download binary from ${URL}"
36
exit 1
37
else
38
+ echo "Latest: $LATEST"
39
curl -L $URL -o $DEST
40
chmod +x $DEST
41
0 commit comments