Skip to content

Commit

Permalink
Update installUpgradeFunctions.sh: Handle no new settings
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Nov 19, 2024
1 parent d7bff97 commit f828440
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/installUpgradeFunctions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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' )"
Expand All @@ -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}"
Expand Down

0 comments on commit f828440

Please sign in to comment.