Ensure tar is not bsdtar

This commit is contained in:
Ben Ramsey 2023-02-14 14:13:01 -06:00
parent 843ba82b53
commit d9ac59b0a9
No known key found for this signature in database
GPG key ID: F9C39DC0B9698544

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)