We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 580ac0b commit d9278f7Copy full SHA for d9278f7
src/ci/publish_toolstate.sh
@@ -1,6 +1,9 @@
1
-#!/bin/sh
+#!/bin/bash
2
3
-set -eu
+set -euo pipefail
4
+IFS=$'\n\t'
5
+
6
+source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
7
8
# The following lines are also found in src/bootstrap/toolstate.rs,
9
# so if updating here, please also update that file.
@@ -21,7 +24,7 @@ cd rust-toolstate
21
24
FAILURE=1
22
25
for RETRY_COUNT in 1 2 3 4 5; do
23
26
# The purpose is to publish the new "current" toolstate in the toolstate repo.
- "$BUILD_SOURCESDIRECTORY/src/tools/publish_toolstate.py" "$GIT_COMMIT" \
27
+ "$(ciCheckoutPath)/src/tools/publish_toolstate.py" "$GIT_COMMIT" \
28
"$GIT_COMMIT_MSG" \
29
"$MESSAGE_FILE" \
30
"$TOOLSTATE_REPO_ACCESS_TOKEN"
0 commit comments