Skip to content

Commit 465337b

Browse files
committed
Made sure OPTIND is reset to 1 since the script is supposed to be sourced.
1 parent 3705abb commit 465337b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

specs/sop_specs_path.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ error() {
3232
exit 1
3333
}
3434

35+
# OPTIND needs to be reset since this script is supposed to be sourced.
36+
OPTIND=1
3537
while getopts "h" option
3638
do
3739
case $option in

0 commit comments

Comments
 (0)