Make sure options index is local to the function parse_args
authorSofian Brabez <sofian.brabez@gonitro.com>
Thu, 5 Sep 2019 09:41:39 +0000 (10:41 +0100)
committerSofian Brabez <sofian.brabez@gonitro.com>
Thu, 5 Sep 2019 13:48:12 +0000 (14:48 +0100)
release.sh

index 9577a014cbcf35d547a77f5fbfe872267c67e5ff..23c83e63f77b6d5e44ac32e537182dc5a0a9417c 100755 (executable)
@@ -37,6 +37,7 @@ do_prereq() {
 }
 
 parse_args() {
+    local OPTIND
     while getopts ":b:hsn" opt; do
         case ${opt} in
             b) BUCKET=${OPTARG}