Skip to content

Commit d9ac59b

Browse files
committed
Ensure tar is not bsdtar
1 parent 843ba82 commit d9ac59b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: scripts/dev/makedist

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
tar="$(which gtar)"
1010
tar="${tar:-$(which tar)}"
1111

12+
if [[ $($tar --version) == *"bsdtar"* ]]; then
13+
echo "Found bsdtar at $tar, but this script needs GNU tar."
14+
exit 1
15+
fi
16+
1217
# Go to project root directory.
1318
cd $(CDPATH= cd -- "$(dirname -- "$0")/../../" && pwd -P)
1419

0 commit comments

Comments
 (0)