You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ma...@apache.org on 2024/01/31 11:42:58 UTC

(flink) 04/07: [hotfix][ci] Replaces spaces with tabs

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

mapohl pushed a commit to branch release-1.18
in repository https://gitbox.apache.org/repos/asf/flink.git

commit bfa590d1b52fd70baf1918821f5cd8bd219e8785
Author: Matthias Pohl <ma...@aiven.io>
AuthorDate: Wed Jan 24 10:12:19 2024 +0100

    [hotfix][ci] Replaces spaces with tabs
    
    The space indentation was accidentally added in FLINK-33906
---
 tools/azure-pipelines/debug_files_utils.sh | 44 +++++++++++++++---------------
 1 file changed, 22 insertions(+), 22 deletions(-)

diff --git a/tools/azure-pipelines/debug_files_utils.sh b/tools/azure-pipelines/debug_files_utils.sh
index 6b74912e9fe..c2b3c3d5e8e 100755
--- a/tools/azure-pipelines/debug_files_utils.sh
+++ b/tools/azure-pipelines/debug_files_utils.sh
@@ -30,28 +30,28 @@ function prepare_debug_files {
 	export DEBUG_FILES_OUTPUT_DIR="${parent_directory}/debug_files"
 	export DEBUG_FILES_NAME="$(echo "${module}" | tr -c '[:alnum:]\n\r' '_')-$(date +%s)"
 
-  if [ -n "${TF_BUILD+x}" ]; then
-    echo "[INFO] Azure Pipelines environment detected: $0 will export the variables in the Azure-specific way."
-
-    echo "##vso[task.setvariable variable=DEBUG_FILES_OUTPUT_DIR]$DEBUG_FILES_OUTPUT_DIR"
-    echo "##vso[task.setvariable variable=DEBUG_FILES_NAME]$DEBUG_FILES_NAME"
-  elif [ -n "${GITHUB_ACTIONS+x}" ]; then
-    echo "[INFO] GitHub Actions environment detected: $0 will export the variables in the GHA-specific way."
-
-    if [ -z "${GITHUB_OUTPUT+x}" ]; then
-      echo "[ERROR] The GITHUB_OUTPUT variable is not set."
-      exit 1
-    elif [ ! -f "$GITHUB_OUTPUT" ]; then
-      echo "[ERROR] The GITHUB_OUTPUT variable doesn't refer to a file: $GITHUB_OUTPUT"
-      exit 1
-    fi
-
-    echo "debug-files-output-dir=${DEBUG_FILES_OUTPUT_DIR}" >> "$GITHUB_OUTPUT"
-    echo "debug-files-name=${DEBUG_FILES_NAME}" >> "$GITHUB_OUTPUT"
-  else
-    echo "[ERROR] No CI environment detected. Debug artifact-related variables couldn't be exported."
-    exit 1
-  fi
+	if [ -n "${TF_BUILD+x}" ]; then
+		echo "[INFO] Azure Pipelines environment detected: $0 will export the variables in the Azure-specific way."
+
+		echo "##vso[task.setvariable variable=DEBUG_FILES_OUTPUT_DIR]$DEBUG_FILES_OUTPUT_DIR"
+		echo "##vso[task.setvariable variable=DEBUG_FILES_NAME]$DEBUG_FILES_NAME"
+	elif [ -n "${GITHUB_ACTIONS+x}" ]; then
+		echo "[INFO] GitHub Actions environment detected: $0 will export the variables in the GHA-specific way."
+
+		if [ -z "${GITHUB_OUTPUT+x}" ]; then
+			echo "[ERROR] The GITHUB_OUTPUT variable is not set."
+			exit 1
+		elif [ ! -f "$GITHUB_OUTPUT" ]; then
+			echo "[ERROR] The GITHUB_OUTPUT variable doesn't refer to a file: $GITHUB_OUTPUT"
+			exit 1
+		fi
+
+		echo "debug-files-output-dir=${DEBUG_FILES_OUTPUT_DIR}" >> "$GITHUB_OUTPUT"
+		echo "debug-files-name=${DEBUG_FILES_NAME}" >> "$GITHUB_OUTPUT"
+	else
+		echo "[ERROR] No CI environment detected. Debug artifact-related variables couldn't be exported."
+		exit 1
+	fi
 
 	mkdir -p $DEBUG_FILES_OUTPUT_DIR || { echo "FAILURE: cannot create debug files directory '${DEBUG_FILES_OUTPUT_DIR}'." ; exit 1; }
 }