From 139b6f3b9eb5a253baf9db9ad721f01628c87611 Mon Sep 17 00:00:00 2001 From: Samir Talwar Date: Wed, 13 Oct 2021 14:55:20 +0200 Subject: [PATCH] CI: Set `PROJ_DIR` inside the bash lib, not outside. (#11236) * CI: Set `PROJ_DIR` inside the bash lib, not outside. We can't reference variables set outside. CHANGELOG_BEGIN CHANGELOG_END * CI: Remove an unnecessary `export`. --- ci/bash-lib.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/bash-lib.yml b/ci/bash-lib.yml index 73195ac836..b5f35bf9c9 100644 --- a/ci/bash-lib.yml +++ b/ci/bash-lib.yml @@ -2,14 +2,14 @@ # SPDX-License-Identifier: Apache-2.0 parameters: - var_name: '' + var_name: "" steps: - bash: | set -euo pipefail TMP=$(mktemp) - PROJ_DIR="$(pwd)" - cat > $TMP <<'END' + cat > "$TMP" <<'END' + PROJ_DIR="$PWD" escape_slack() { local r r="$1"