Skip to content
Snippets Groups Projects
Commit f6107131 authored by Bogdan Dobrelya's avatar Bogdan Dobrelya
Browse files

Fix gen-gitinfos.sh


Fix the error gen-gitinfos.sh: 57: [: foo: unexpected operator

Signed-off-by: default avatarBogdan Dobrelya <bdobrelia@mirantis.com>
parent 36b6ae9a
No related branches found
No related tags found
No related merge requests found
......@@ -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 =\""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment