Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

Commit fb50cf9

Browse files
authored
Add a friendly message when GNU tar is not found (#288)
1 parent 6c9b9f5 commit fb50cf9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

bin/test-build-on-all-distros

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ then
5757
else
5858
TAR=tar
5959
fi
60+
61+
if ! [[ "$("$TAR" --version)" =~ GNU ]]
62+
then
63+
echo 'GNU tar is required. (Install the gnu-tar package from Homebrew to fix it if you are using macOS)' >&2
64+
exit 1
65+
fi
66+
6067
(
6168
set -x
6269
cd "$SOURCE_DIR"

0 commit comments

Comments
 (0)