From cd6d67df06b589ee0b7aab71fe5091687a5fab0c Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 28 Apr 2024 11:17:22 -0400 Subject: [PATCH] improve macos error message wrt gnu date --- git-quick-stats | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/git-quick-stats b/git-quick-stats index 332a673..1edefc5 100755 --- a/git-quick-stats +++ b/git-quick-stats @@ -99,10 +99,10 @@ function checkUtils() { # the user that this will not work rather than having it silently bomb out # during runtime. if ! date --version >/dev/null 2>&1; then - echo "ERROR: You must have GNU date installed." - echo "If you're on macOS, please use brew to install this utility." - echo "Make sure the GNU version of date is symlinked to 'date', too." - exit 1 + echo "ERROR: GNU date is required." + echo "If you're on macOS, please install it using 'brew install coreutils'." + echo "Ensure that your PATH is configured to use GNU date as well." + exit 1 fi }