Skip to content

Commit e886960

Browse files
Don't exit if variable is not set
1 parent ebf5a73 commit e886960

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

test/prism.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
install () {
44

5-
set -eu
5+
set -e
66

77
UNAME=$(uname)
88
ARCH=$(uname -m)
@@ -28,10 +28,8 @@ fi
2828
LATEST=$(curl -s https://api.github.com/repos/stoplightio/prism/tags | grep -Eo '"name":.*?[^\\]",' | head -n 1 | sed 's/[," ]//g' | cut -d ':' -f 2)
2929
URL="https://github.com/stoplightio/prism/releases/download/$LATEST/prism_$PLATFORM"
3030
DEST=/usr/local/bin/prism
31-
if [ -z $GOPATH ]; then
32-
if [ "$GOPATH" != "" ] ; then
31+
if [ "$GOPATH" != "" ] ; then
3332
DEST=$GOPATH/bin/prism
34-
fi
3533
fi
3634

3735
if [ -z $LATEST ] ; then

0 commit comments

Comments
 (0)