diff options
author | Bryan Drewery <bryan@shatow.net> | 2021-11-20 02:32:24 +0300 |
---|---|---|
committer | Bryan Drewery <bryan@shatow.net> | 2021-11-20 02:36:29 +0300 |
commit | 4d28d33870b5e777874f126e104eb0da001a84cd (patch) | |
tree | 1752ac1fe33977b66d8ae6117b5368acc7090272 | |
parent | b2e6a55e487f2ac2de33d60a6f5711b53b3f4b2a (diff) |
Add local OPTIND=1 where getopts(1) is used
-rw-r--r-- | src/share/poudriere/include/display.sh | 1 | ||||
-rw-r--r-- | src/share/poudriere/include/fs.sh | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/share/poudriere/include/display.sh b/src/share/poudriere/include/display.sh index e7666f58..59be1523 100644 --- a/src/share/poudriere/include/display.sh +++ b/src/share/poudriere/include/display.sh @@ -48,6 +48,7 @@ display_add() { display_output() { local cnt lengths length format arg flag quiet line n + local OPTIND=1 quiet=0 diff --git a/src/share/poudriere/include/fs.sh b/src/share/poudriere/include/fs.sh index 9b85a9cd..b3f60c62 100644 --- a/src/share/poudriere/include/fs.sh +++ b/src/share/poudriere/include/fs.sh @@ -81,6 +81,7 @@ _do_clone() { local rflags="$1" shift local src dst common relative cpignore FLAG + local OPTIND=1 relative=0 cpignore="" |