Skip to content
This repository was archived by the owner on Mar 1, 2025. It is now read-only.

Commit 2f6f289

Browse files
committed
define OPTIND just before use
1 parent e308f00 commit 2f6f289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/op-ssh-create

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ function confirm {
5454
done
5555
}
5656

57-
OPTIND=1
5857
ssh_host=""
5958
ssh_user="$(id -u -n)"
6059
title=""
6160
key_file=""
6261
skip_confirms=""
62+
OPTIND=1
6363
while getopts "hH:i:t:u:y" opt; do
6464
case "$opt" in
6565
h)

0 commit comments

Comments
 (0)