Skip to content

Commit

Permalink
better test for RELEASE
Browse files Browse the repository at this point in the history
  • Loading branch information
fferreira committed Jul 24, 2015
1 parent 0fd682b commit 4cbc679
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions RELEASE
Expand Up @@ -2,11 +2,8 @@

set -e

bailout=NO

git status --porcelain | grep "" && bailout=YES

if [ $bailout = YES ]; then
# tests that the output of git status --porcelain is non-empty
if [ -n "$(git status --porcelain)" ]; then
echo
echo 'git status reports a working tree that is not pristine.'
echo 'Please run this release script in a clean directory, such as after'
Expand Down

0 comments on commit 4cbc679

Please sign in to comment.