summaryrefslogtreecommitdiffstats
path: root/lib/metadata.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2018-12-24 21:41:16 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2018-12-24 21:41:16 (EST)
commitd74ddaf29daa7a66f40cacaccdc844c2484d2aea (patch)
tree031dd0e07e75c683ac5f47d9aa97e5fb48bbc496 /lib/metadata.sh
parent1ab4841c081cab17e8888f5a0a913c1cdae4f274 (diff)
libopkbuild: Initialize OPTIND before getopts
See commit 0f5caf14a3124c24f38f340fd6504532f07d9617 for more information.
Diffstat (limited to 'lib/metadata.sh')
-rw-r--r--lib/metadata.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/metadata.sh b/lib/metadata.sh
index e9a30b3..e269368 100644
--- a/lib/metadata.sh
+++ b/lib/metadata.sh
@@ -54,6 +54,7 @@ ob_parse_version()
local distrev_var=
local version=
+ OPTIND=1
while getopts 'u:d:' opt; do
case "${opt}" in
u)