fix: use tar -k not tar --no-overwrite-dir for platform independence
It turns out `--no-overwrite-dir` is nonstandard, and anyway `-k` achieves the same thing since we do not expect to overwrite any files anyway.
@@ -81,8 +81,9 @@ download_tarball() {
download_url_and_check_sha "$URL" "$SHA256" "$DOWNLOAD_PATH"
- # --no-overwrite-dir: since some archives contain r-x ".", do not overwrite directory metadata.
- tar --no-overwrite-dir -xvf "$DOWNLOAD_PATH" -C "$BINARY_CACHE_TEMP_DIR"
+ # -k: some archives contain r-x ".", and on linux the default behavior is to overwrite the
+ # metadata. We only want to extract new files anyway.
+ tar -xkvf "$DOWNLOAD_PATH" -C "$BINARY_CACHE_TEMP_DIR"
}
download_ic_ref() {
