Skip to content

Commit

Permalink
Merge pull request #2802 from thomasjacquin/settings()-bug-fix
Browse files Browse the repository at this point in the history
settings() bug fix
  • Loading branch information
EricClaeys authored Jun 17, 2023
2 parents 5a3717c + 093a69e commit 6f103de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ function settings()
local M="${ME:-settings}"
local FIELD="${1}"
# Arrays can't begin with period but everything else should.
if [[ ${FIELD:0:1} != "." && ${FIELD: -2:2} != "[]" ]]; then
if [[ ${FIELD:0:1} != "." && ${FIELD: -2:2} != "[]" && ${FIELD:0:3} != "if " ]]; then
echo "${M}: Field names must begin with period '.' (Field='${FIELD}')" >&2
return 1
fi
Expand Down

0 comments on commit 6f103de

Please sign in to comment.