Skip to content

Commit

Permalink
Fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
tkuhn committed Sep 18, 2023
1 parent f03a248 commit ada04b7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ if [ -z $1 ] || [[ "$1" != "-" ]]; then
fi

git update-index --refresh -q || true
LOCALCHANGES=0
git diff-index --quiet HEAD -- || LOCALCHANGES=1
git diff-index --quiet HEAD -- || LOCAL_CHANGES=1

if $LOCAL_CHANGES; then
if [[ "$LOCAL_CHANGES" == 1 ]]; then
echo "ERROR: Uncommitted local changes"
exit 1
fi
Expand Down

0 comments on commit ada04b7

Please sign in to comment.