mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-11-04 12:03:15 +00:00
fix: declare -i [SC2324 shellcheck] (#2624)
Fix SC2324 shellcheck warning by adding -i to indicate var type of integer and tidy up the formatting.
This commit is contained in:
parent
b27ad9b6aa
commit
30b6a09bc3
@ -16,12 +16,12 @@ function usage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getopts-extra() {
|
function getopts-extra() {
|
||||||
declare i=1
|
declare -i i=1
|
||||||
# if the next argument is not an option, then append it to array OPTARG
|
# if the next argument is not an option, then append it to array OPTARG
|
||||||
while [[ ${OPTIND} -le $# && ${!OPTIND:0:1} != '-' ]]; do
|
while [[ ${OPTIND} -le $# && ${!OPTIND:0:1} != '-' ]]; do
|
||||||
OPTARG[i]=${!OPTIND}
|
OPTARG[i]=${!OPTIND}
|
||||||
i+=1
|
((i += 1))
|
||||||
OPTIND+=1
|
((OPTIND += 1))
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user