Skip to content

Commit

Permalink
check for unpushed commits
Browse files Browse the repository at this point in the history
  • Loading branch information
andgineer committed Mar 30, 2020
1 parent 638f857 commit d2d8dc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi

echo -e "Last version tag: \033[33m$major.$minor.$build\033[39m"

if [[ $(git diff-index HEAD) ]]; then
if [[ $(git diff-index HEAD) || $(git status) == *"is ahead"* ]]; then
echo -e "\n\033[33mPlease commit and push all changes" \
"before setting version tag\033[39m\n"
exit -1
Expand Down

0 comments on commit d2d8dc5

Please sign in to comment.