Fix a couple of shellcheck errors.
This commit is contained in:
parent
47fb3588b8
commit
629a2e2192
1 changed files with 3 additions and 3 deletions
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
|
|
||||||
parser_getopts() {
|
parser_getopts() {
|
||||||
while [[ ! -z "$1" ]]; do
|
while [[ -n "$1" ]]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-b|-bound|--bound)
|
-b|-bound|--bound)
|
||||||
if [[ -z "$2" ]]; then
|
if [[ -z "$2" ]]; then
|
||||||
|
|
@ -485,8 +485,8 @@ parse_ini() {
|
||||||
LINE="${LINE/$KEYVALUE_DELIM+([[:blank:]])/$KEYVALUE_DELIM}"
|
LINE="${LINE/$KEYVALUE_DELIM+([[:blank:]])/$KEYVALUE_DELIM}"
|
||||||
|
|
||||||
# Extract the key and the value.
|
# Extract the key and the value.
|
||||||
KEY="${LINE%%$KEYVALUE_DELIM*}"
|
KEY="${LINE%%"$KEYVALUE_DELIM"*}"
|
||||||
VALUE="${LINE#*$KEYVALUE_DELIM}"
|
VALUE="${LINE#*"$KEYVALUE_DELIM"}"
|
||||||
|
|
||||||
# Squash multiple consecutive blanks into a single space.
|
# Squash multiple consecutive blanks into a single space.
|
||||||
((SQUASH_SPACES == 1)) && KEY="${KEY//+([[:blank:]])/ }"
|
((SQUASH_SPACES == 1)) && KEY="${KEY//+([[:blank:]])/ }"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue