Skip to content

Commit

Permalink
Merge pull request #167 from jubalh/master
Browse files Browse the repository at this point in the history
vc: create changelog file only in case of a change
  • Loading branch information
adrianschroeter committed Apr 24, 2015
2 parents 82d7435 + c045d52 commit 96a5a03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vc
Expand Up @@ -106,6 +106,7 @@ if [ -z "$changelog" ]; then
fi

if [ ! -e "$changelog" ]; then
created_new_changelog=true
touch $changelog
fi

Expand Down Expand Up @@ -144,6 +145,9 @@ if [ -z "$message" ]; then
set -- `md5sum "$tmpfile"`
if [ -z "$content" -a "$chksum" == "$1" ]; then
echo "no changes made"
if [ "$created_new_changelog" = true ]; then
rm -f "$changelog"
fi
exit 0
fi
fi
Expand Down

0 comments on commit 96a5a03

Please sign in to comment.