kou commented on code in PR #14570:
URL: https://github.com/apache/arrow/pull/14570#discussion_r1014484160
##########
ci/scripts/install_sccache.sh:
##########
@@ -41,14 +41,23 @@ SCCACHE_ARCHIVE=sccache.tar.gz
# Download archive and checksum
curl -L $SCCACHE_URL --output $SCCACHE_ARCHIVE
curl -L $SCCACHE_URL.sha256 --output $SCCACHE_ARCHIVE.sha256
+echo " $SCCACHE_ARCHIVE" >> $SCCACHE_ARCHIVE.sha256
-echo "$(cat $SCCACHE_ARCHIVE.sha256) $SCCACHE_ARCHIVE" | sha256sum --check
--status
+SHA_ARGS="--check --status"
+
+# Busybox sha256sum uses different flags
+if sha256sum --version 2>&1 | grep -q BusyBox; then
+ SHA_ARGS="-sc"
+fi
+
+sha256sum $SHA_ARGS $SCCACHE_ARCHIVE.sha256
if [ ! -d $PREFIX ]; then
mkdir -p $PREFIX
fi
-tar -xzvf $SCCACHE_ARCHIVE --strip-component=1 --directory $PREFIX --wildcards
sccache*/sccache*
+# Extract only the sccache binary into $PREFIX and ignore README and LCIENSE
Review Comment:
```suggestion
# Extract only the sccache binary into $PREFIX and ignore README and LCIENSE.
# --wildcards doesn't work on busybox.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]