mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-27 08:31:04 +02:00
Previously shifts were added into the getopts loop to work around differences between different sh implementations but that causes getopts to end the loop early. Instead use an intermediate variable to work around inconsistent OPTIND behavior and explicitly check for the -- separator. Tested in bash, dash, and ash.
Description
Languages
Shell
93.1%
Python
6.9%