Skip to content

Commit

Permalink
Merge pull request #849 from unclejack/fix_release_script
Browse files Browse the repository at this point in the history
scripts/release.sh: fix var checking logic
  • Loading branch information
jojimt authored Apr 22, 2017
2 parents b1fbada + 2e10c46 commit 84caf81
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/bin/bash

if [ -n "$VERSION" ]; then
set -euo pipefail

if [ -z "${VERSION-}" ]; then
echo "VERSION needs to be defined to make a release"
exit 1
fi

if [ -n "$TAR_FILENAME" ]; then
if [ -z "${TAR_FILENAME-}" ]; then
echo "TAR_FILENAME needs to be defined to make a release"
exit 1
fi
Expand Down

0 comments on commit 84caf81

Please sign in to comment.