Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
Fix if condition for $RELEASE_UPGRADE
Browse files Browse the repository at this point in the history
```
if [ $RELEASE_UPGRADE = true ]; then
```

will always throw a

```
./compile: line 68: [: =: unary operator expected
```

when $RELEASE_UPGRADE isn't set, so we'll default it to false first.
  • Loading branch information
joedevivo committed Aug 16, 2016
1 parent fa17af9 commit aeae65f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/compile
Expand Up @@ -65,7 +65,9 @@ if [ $BINARY_RELEASES ]; then
mkdir -p ${ROOT}/releases/$REL_VSN/
cp ${cache}/${tarball} ${ROOT}/releases/$REL_VSN/$NAME.tar.gz

if [ $RELEASE_UPGRADE = true ]; then
## First default RELEASE_UPGRADE to false, in case it's undefined
RELEASE_UPGRADE=${RELEASE_UPGRADE:=false}
if [ $RELEASE_UPGRADE == true ]; then
${ROOT}/bin/${NAME} upgrade $REL_VSN
tar -xf ${cache}/${tarball} bin
else
Expand Down

0 comments on commit aeae65f

Please sign in to comment.