shell-scripting: fix typo of getopts