Skip to content

Commit f8824c8

Browse files
author
Michael Saki
committed
Improve comment on conditional check for regex
1 parent 2e38997 commit f8824c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup-env

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ LONGOPTS="force,help,install-hooks,list-versions,python-version:,venv-name:"
5454
# Define short options for getopt
5555
SHORTOPTS="fhilp:v:"
5656

57-
# Check if GNU getopt is available
57+
# Check for GNU getopt by matching a specific pattern ("getopt from util-linux")
58+
# in its version output. This approach presumes the output format remains stable.
59+
# Be aware that format changes could invalidate this check.
5860
if [[ $(getopt --version 2> /dev/null) != *"getopt from util-linux"* ]]; then
5961
cat << 'END_OF_LINE'
6062

0 commit comments

Comments
 (0)