We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e886960 commit c3e14e7Copy full SHA for c3e14e7
1 file changed
test/prism.sh
@@ -2,7 +2,7 @@
2
3
install () {
4
5
-set -e
+set -eu
6
7
UNAME=$(uname)
8
ARCH=$(uname -m)
@@ -28,9 +28,6 @@ fi
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
URL="https://github.com/stoplightio/prism/releases/download/$LATEST/prism_$PLATFORM"
30
DEST=/usr/local/bin/prism
31
-if [ "$GOPATH" != "" ] ; then
32
- DEST=$GOPATH/bin/prism
33
-fi
34
35
if [ -z $LATEST ] ; then
36
echo "Error requesting. Download binary from ${URL}"
0 commit comments