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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user