Browse Source

Merge pull request #423 from bogdando/fix_gitinfos

Fix gen-gitinfos.sh
pull/420/head
Smaine Kahlouch 8 years ago
committed by GitHub
parent
commit
d97673c13f
1 changed files with 1 additions and 1 deletions
  1. 2
      roles/kubernetes/preinstall/gen-gitinfos.sh

2
roles/kubernetes/preinstall/gen-gitinfos.sh

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

Loading…
Cancel
Save