coreos/scripts — pull request #116 by marineam (2013-10-08 20:49:33+00:00)
Title: fix(qemu_template): Fix getopts usage in qemu wrapper script.

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.