Skip to content

Commit d133a39

Browse files
Testing LATEST variable
1 parent 1933af7 commit d133a39

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/prism.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ elif [ "$UNAME" = "Linux" ] ; then
2525
fi
2626
fi
2727

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)
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)
29+
echo "Latest: $LATEST"
2930
LATEST="v0.1.5"
3031
URL="https://github.com/stoplightio/prism/releases/download/v0.1.5/prism_$PLATFORM"
3132
DEST=./prism/bin/prism
@@ -34,6 +35,7 @@ if [ -z $LATEST ] ; then
3435
echo "Error requesting. Download binary from ${URL}"
3536
exit 1
3637
else
38+
echo "Latest: $LATEST"
3739
curl -L $URL -o $DEST
3840
chmod +x $DEST
3941
fi

0 commit comments

Comments
 (0)