From 90e71236ef99988e55f20ea02f5a01292d44ab53 Mon Sep 17 00:00:00 2001 From: Matthias Pohl Date: Thu, 21 Dec 2023 00:40:00 +0100 Subject: [PATCH] Adds missing negation --- tools/azure-pipelines/create_build_artifact.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/azure-pipelines/create_build_artifact.sh b/tools/azure-pipelines/create_build_artifact.sh index f9df635bed4ab6..6b85ceb39cc412 100755 --- a/tools/azure-pipelines/create_build_artifact.sh +++ b/tools/azure-pipelines/create_build_artifact.sh @@ -45,7 +45,7 @@ rm -rf "$FLINK_ARTIFACT_DIR/target/site" rm -rf "$FLINK_ARTIFACT_DIR/flink-runtime-web/web-dashboard/node" rm -rf "$FLINK_ARTIFACT_DIR/flink-runtime-web/web-dashboard/node_modules" -if [ -z "${FLINK_ARTIFACT_FILENAME}" ]; then +if [ ! -z "${FLINK_ARTIFACT_FILENAME}" ]; then echo "Archives artifacts into ${FLINK_ARTIFACT_DIR}/${FLINK_ARTIFACT_FILENAME}" tar --create --gzip --exclude "${FLINK_ARTIFACT_DIR}" --file "${FLINK_ARTIFACT_DIR}" . fi