From 093a69e1aec9ed4d98f184e1fdd8b953e0afb097 Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Fri, 16 Jun 2023 21:16:40 -0500 Subject: [PATCH] settings() bug fix If first word in the FIELD is "if" then it should not have a period. --- scripts/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/functions.sh b/scripts/functions.sh index 798eb76ca..146cfcd3f 100644 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -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