Merge pull request #423 from bogdando/fix_gitinfos

Fix gen-gitinfos.sh
This commit is contained in:
Smaine Kahlouch 2016-08-23 10:17:21 +02:00 committed by GitHub
commit d97673c13f

View file

@ -54,7 +54,7 @@ EOF
printf "unstaged changes=\"/etc/.git-ansible.diff\""
fi
if [ ${current_commit} == ${latest_tag_commit} ]; then
if [ "${current_commit}" = "${latest_tag_commit}" ]; then
printf "\ncurrent_commit_tag=\"${latest_tag}\""
else
printf "\nlast tag was "$(git describe --tags | awk -F- '{print $2}')" commits ago =\""