mirror of
https://github.com/arzzen/git-quick-stats.git
synced 2026-09-10 07:36:19 -04:00
Merge pull request #165 from chenrui333/patch-1
improve macos error message wrt gnu date
This commit is contained in:
commit
32a84903ff
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue