Skip to content

Commit

Permalink
Improve release script check for clean working copy.
Browse files Browse the repository at this point in the history
  • Loading branch information
jareware committed Apr 4, 2019
1 parent 1c0136b commit 83a2177
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ done
echo OK

echo -n "Checking for clean working copy... "
git diff-index HEAD
if [ "$(git diff-index HEAD)" != "" ]; then
echo -e "ERROR\n\nThere's uncommitted changes in the working copy"
exit 1
fi
echo OK

echo -n "Parsing git remote... "
Expand Down

0 comments on commit 83a2177

Please sign in to comment.