From f61071312aadf176f0548e1c7fac8ff8f20f65d7 Mon Sep 17 00:00:00 2001 From: Bogdan Dobrelya Date: Tue, 23 Aug 2016 10:15:30 +0200 Subject: [PATCH] Fix gen-gitinfos.sh Fix the error gen-gitinfos.sh: 57: [: foo: unexpected operator Signed-off-by: Bogdan Dobrelya --- roles/kubernetes/preinstall/gen-gitinfos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes/preinstall/gen-gitinfos.sh b/roles/kubernetes/preinstall/gen-gitinfos.sh index 34b977f7e..bfab5a4be 100755 --- a/roles/kubernetes/preinstall/gen-gitinfos.sh +++ b/roles/kubernetes/preinstall/gen-gitinfos.sh @@ -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 =\""