Fix: condition before pushing the object. 91/71491/1
authorAnil Belur <abelur@linuxfoundation.org>
Sun, 2 Apr 2023 02:34:11 +0000 (08:04 +0530)
committerAnil Belur <abelur@linuxfoundation.org>
Sun, 2 Apr 2023 02:34:11 +0000 (08:04 +0530)
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: If1d091bd9e94fa5337053094b0101541bb056ca4

releasenotes/notes/fix-condition-before-pushing-object-97add454bc88ee31.yaml [new file with mode: 0644]
shell/release-job.sh

diff --git a/releasenotes/notes/fix-condition-before-pushing-object-97add454bc88ee31.yaml b/releasenotes/notes/fix-condition-before-pushing-object-97add454bc88ee31.yaml
new file mode 100644 (file)
index 0000000..54aafbe
--- /dev/null
@@ -0,0 +1,4 @@
+---
+fixes:
+  - |
+    Fix condition before pushing the object.
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"