mirror of
https://github.com/tanrax/bash-folders.git
synced 2025-10-10 18:25:50 +02:00
Added missing "--" check for getopt
This commit is contained in:
@@ -91,6 +91,7 @@ main() {
|
|||||||
-h | --help ) usage; return 0;;
|
-h | --help ) usage; return 0;;
|
||||||
-l | --low ) settings['low']="${2}"; shift;;
|
-l | --low ) settings['low']="${2}"; shift;;
|
||||||
-H | --high ) settings['high']="${2}"; shift;;
|
-H | --high ) settings['high']="${2}"; shift;;
|
||||||
|
-- ) shift; break;;
|
||||||
* )
|
* )
|
||||||
printf '%s\n' "Unknown option: '${1}'" >&2
|
printf '%s\n' "Unknown option: '${1}'" >&2
|
||||||
usage
|
usage
|
||||||
|
Reference in New Issue
Block a user