Skip to content

Commit

Permalink
Update installUpgradeFunctions.sh: Use "hide" instead of "true"
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Jan 4, 2025
1 parent 94eb2cf commit 16a54db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/installUpgradeFunctions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@ function doV()
local jV="${3}" # new json variable name
local TYPE="${4}"
local FILE="${5}"
local HIDE="${6:-false}" # hide value in log file
local HIDE="${6:-show}" # "hide" to hide value in log file

[[ -z ${oldV} ]] && oldV="${V_}"

Expand All @@ -1159,10 +1159,10 @@ function doV()
fi
MSG="${SPACE}${oldV}${jV} = ${VAL_}"
[[ -n ${oldV} ]] && MSG+=", TYPE=${TYPE}"
[[ ${HIDE} == "true" ]] && MSG="${MSG/${VAL_}/<HIDDEN>}"
[[ ${HIDE} == "hide" ]] && MSG="${MSG/${VAL_}/<HIDDEN>}"
display_msg --logonly info "${MSG}"
else
[[ ${HIDE} == "true" ]] && ERR="${ERR/${VAL_}/<HIDDEN>}"
[[ ${HIDE} == "hide" ]] && ERR="${ERR/${VAL_}/<HIDDEN>}"
# update_json_file() returns error message.
display_msg --log warning "${ERR}"
fi
Expand Down

0 comments on commit 16a54db

Please sign in to comment.