This is an automated email from the ASF dual-hosted git repository.

vy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/logging-parent.git


The following commit(s) were added to refs/heads/main by this push:
     new 7c20777  Fix bash typo
7c20777 is described below

commit 7c207773f6c75a1313cafbd22675c8f6d0bfe2ee
Author: Volkan Yazıcı <[email protected]>
AuthorDate: Wed Sep 6 10:02:56 2023 +0200

    Fix bash typo
---
 .github/workflows/deploy-release-reusable.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/deploy-release-reusable.yml 
b/.github/workflows/deploy-release-reusable.yml
index c7a021e..6a5b170 100644
--- a/.github/workflows/deploy-release-reusable.yml
+++ b/.github/workflows/deploy-release-reusable.yml
@@ -116,11 +116,11 @@ jobs:
           export DIST_FILEPATH_SRC="${DIST_FILEPATH_PREFIX}-src.zip"
           export DIST_FILEPATH_BIN="${DIST_FILEPATH_PREFIX}-bin.zip"
           mv "target/src.zip" "$DIST_FILEPATH_SRC"
-          [ -e "$DIST_FILEPATH_SRC" ] && mv "target/bin.zip" 
"$DIST_FILEPATH_BIN"
+          [ -f "$DIST_FILEPATH_SRC" ] && mv "target/bin.zip" 
"$DIST_FILEPATH_BIN"
 
           # Create signature and checksum files
           for DIST_FILEPATH in "$DIST_FILEPATH_SRC" "$DIST_FILEPATH_BIN"; do
-            if [ -e "$DIST_FILEPATH" ]; then
+            if [ -f "$DIST_FILEPATH" ]; then
               gpg --armor --detach-sign --yes --pinentry-mode error 
"$DIST_FILEPATH"
               sha512sum "$DIST_FILEPATH" > "$DIST_FILEPATH.sha512"
             fi

Reply via email to