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 003fbbf commit dc371d2Copy full SHA for dc371d2
ci/docker/scripts/sccache.bash
@@ -8,12 +8,13 @@ SHA="26fd04c1273952cc2a0f359a71c8a1857137f0ee3634058b3f4a63b69fc8eb7f"
8
DL_URL="https://github.com/mozilla/sccache/releases/download"
9
BIN_DIR=/usr/local/bin
10
TEMP_DIR=$(mktemp -d)
11
+TAR_NAME="sccache-${VERSION}-${TARGET}.tar.gz"
12
13
cd "${TEMP_DIR}"
14
mkdir -p "${BIN_DIR}"
15
-curl -sSL -O "${DL_URL}/${VERSION}/sccache-${VERSION}-${TARGET}.tar.gz"
16
-echo "${SHA} sccache-${VERSION}-${TARGET}.tar.gz" | sha256sum --check -
17
-tar -xzf - --strip-components 1
+curl -sSL -O "${DL_URL}/${VERSION}/${TAR_NAME}"
+echo "${SHA} ${TAR_NAME}" | sha256sum --check -
18
+tar -xzf "${TAR_NAME}" --strip-components 1
19
cp sccache "${BIN_DIR}/sccache"
20
chmod +x "${BIN_DIR}/sccache"
0 commit comments