Skip to content

Commit 947f02b

Browse files
committed
Fixed unbound variable
1 parent ddd7740 commit 947f02b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

bin/generate-report-s3.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ if [[ -z "${LOCAL_REPORTS_PATH:-}" ]]; then
2424
exit 1
2525
fi
2626

27+
SCRIPT_PATH=$(
28+
cd "$(dirname "${BASH_SOURCE[0]}")" || return
29+
pwd -P
30+
)
31+
2732
# Resolve RESULTS_PATH to absolute path and validate it's within workspace
2833
RESULTS_PATH_ABS=$(cd "$RESULTS_PATH" && pwd -P)
2934
WORKSPACE_PATH=$(pwd -P)
@@ -36,11 +41,6 @@ if [[ "$RESULTS_PATH_ABS" != "$WORKSPACE_PATH"* ]] && [[ "$RESULTS_PATH_ABS" !=
3641
exit 1
3742
fi
3843

39-
SCRIPT_PATH=$(
40-
cd "$(dirname "${BASH_SOURCE[0]}")" || return
41-
pwd -P
42-
)
43-
4444
echo
4545
echo "----------------------------------------"
4646

0 commit comments

Comments
 (0)