Skip to content

Commit 0be1f63

Browse files
author
Michael Saki
committed
Elaborate on message when checking for GNU getopt
1 parent 3bc9aeb commit 0be1f63

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

setup-env

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,13 @@ SHORTOPTS="fhilp:v:"
5858
if [[ $(getopt --version 2> /dev/null) != *"getopt from util-linux"* ]]; then
5959
cat << 'END_OF_LINE'
6060
61-
GNU getopt is not detected and is a dependency to run this script.
61+
Please note, this script requires GNU getopt due to its enhanced
62+
functionality and compatibility with certain script features that
63+
are not supported by the POSIX getopt found in some systems, particularly
64+
those with a non-GNU version of getopt. This distinction is crucial
65+
as a system might have a non-GNU version of getopt installed by default,
66+
which could lead to unexpected behavior or script failure.
67+
6268
On the Mac, we recommend installing brew (https://brew.sh/). Then installation
6369
is as simple as `brew install gnu-getopt` and adding this to your
6470
profile:

0 commit comments

Comments
 (0)