fix: zstd detection false positive on MacOS (#3845)

* fix: zstd detection false positive on MacOS

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Roland Schaer 2024-12-27 19:58:48 +01:00 committed by GitHub
parent 1fae2b02bf
commit 323a85b6f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -73,6 +73,9 @@ jq-macos-arm64 = "sha256:0bbe619e663e0de2c550be2fe0d240d076799d6f8a652b70fa04aea
version = "0.11"
backend = "aqua:jedisct1/minisign"
[tools.minisign.checksums]
"minisign-0.11-linux.tar.gz" = "sha256:f0a0954413df8531befed169e447a66da6868d79052ed7e892e50a4291af7ae0"
[tools."npm:markdownlint-cli"]
version = "0.43.0"
backend = "npm:markdownlint-cli"

View File

@ -77,7 +77,7 @@ get_ext() {
tar_supports_zstd() {
# tar is bsdtar or version is >= 1.31
if tar --version | grep -q 'bsdtar'; then
if tar --version | grep -q 'bsdtar' && command -v zstd >/dev/null 2>&1; then
true
elif tar --version | grep -q '1.(3[1-9]|{4-9}\d)'; then
true