Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

Commit

Permalink
do not git-add/git-commit if no changes
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed May 7, 2015
1 parent 2f80ca8 commit d5b889e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ci/git_bump_installer_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ cd $DIR/..
git config --global user.email "robot@concourse.ci"
git config --global user.name "Concourse"

git add cf-cli-release

new_version_tag=$(cat cf-cli-release/tag)
git commit -m "Bumping installer to ${new_version_tag} of traveling-cf-admin"
if [[ "$(git status -s)X" != "X" ]]; then
new_version_tag=$(cat cf-cli-release/tag)
git add cf-cli-release
git commit -m "Bumping installer to ${new_version_tag} of traveling-cf-admin"
else
echo "Version has not changed. Nothing to commit."
fi

0 comments on commit d5b889e

Please sign in to comment.