From f828440b1684d0d8e6602173b46316fa038adb51 Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Mon, 18 Nov 2024 22:39:43 -0600 Subject: [PATCH] Update installUpgradeFunctions.sh: Handle no new settings --- scripts/installUpgradeFunctions.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/installUpgradeFunctions.sh b/scripts/installUpgradeFunctions.sh index 35f97e11e..b20501efe 100644 --- a/scripts/installUpgradeFunctions.sh +++ b/scripts/installUpgradeFunctions.sh @@ -1152,7 +1152,6 @@ function add_new_settings() function display_msg() { return; } fi - display_msg --logonly info "Checking for new settings in options file." local TAB="$( echo -e '\t' )" @@ -1173,10 +1172,16 @@ function add_new_settings() return 1 fi fi + if [[ -z ${NEW} ]]; then + display_msg --logonly info " >> No new settings in options file." + return 0 + fi IFS="${TAB}" echo -e "${NEW}" | while read -r SETTING VALUE TYPE do + [[ -z ${SETTING} ]] && continue + # "read" doesn't work with empty fields. if [[ -z ${TYPE} ]]; then TYPE="${VALUE}"