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

Commit

Permalink
Add a friendly message when GNU tar is not found (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
Atry authored Mar 30, 2022
1 parent 6c9b9f5 commit fb50cf9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/test-build-on-all-distros
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ then
else
TAR=tar
fi

if ! [[ "$("$TAR" --version)" =~ GNU ]]
then
echo 'GNU tar is required. (Install the gnu-tar package from Homebrew to fix it if you are using macOS)' >&2
exit 1
fi

(
set -x
cd "$SOURCE_DIR"
Expand Down

0 comments on commit fb50cf9

Please sign in to comment.