1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Ensure tar is not bsdtar

This commit is contained in:
Ben Ramsey
2023-02-14 14:13:01 -06:00
parent 843ba82b53
commit d9ac59b0a9

View File

@@ -9,6 +9,11 @@
tar="$(which gtar)"
tar="${tar:-$(which tar)}"
if [[ $($tar --version) == *"bsdtar"* ]]; then
echo "Found bsdtar at $tar, but this script needs GNU tar."
exit 1
fi
# Go to project root directory.
cd $(CDPATH= cd -- "$(dirname -- "$0")/../../" && pwd -P)