Merge pull request #165 from chenrui333/patch-1

improve macos error message wrt gnu date
This commit is contained in:
arzzen 2024-04-29 15:46:11 +02:00 committed by GitHub
commit 32a84903ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -99,9 +99,9 @@ function checkUtils() {
# the user that this will not work rather than having it silently bomb out # the user that this will not work rather than having it silently bomb out
# during runtime. # during runtime.
if ! date --version >/dev/null 2>&1; then if ! date --version >/dev/null 2>&1; then
echo "ERROR: You must have GNU date installed." echo "ERROR: GNU date is required."
echo "If you're on macOS, please use brew to install this utility." echo "If you're on macOS, please install it using 'brew install coreutils'."
echo "Make sure the GNU version of date is symlinked to 'date', too." echo "Ensure that your PATH is configured to use GNU date as well."
exit 1 exit 1
fi fi
} }