Fix: condition before pushing the object.
[releng/global-jjb.git] / shell / release-job.sh
index 56e37c3..24bb0d6 100644 (file)
@@ -366,7 +366,7 @@ tag-git-repo(){
             git config user.name "$RELEASE_USERNAME"
             git config user.email "$RELEASE_EMAIL"
             # Check if sentinal file exists
-            if [[ -f .testhash ]]; then
+            if [[ -f .testhash ]]; then
                 git push origin "${GERRIT_BRANCH}" "$GIT_TAG"
             else
                 git push origin "$GIT_TAG"