Skip to content

Commit

Permalink
midpoint.sh : mask password value in the output
Browse files Browse the repository at this point in the history
  • Loading branch information
cz-help committed Jan 29, 2024
1 parent 2b4fd28 commit 941cf4c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dist/src/main/bin/midpoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,12 @@ while read line; do
### exception for *_FILE key name ###
[ "${_key: -5}" = ".FILE" ] && _key="${_key::$((${#_key} - 5))}_FILE"
###

echo "Processing variable (MAP) ... ${_key} .:. ${_val}" >&2
if [ "${_key: -7}" = "assword" ]
then
echo "Processing variable (MAP) ... ${_key} .:. *****" >&2
else
echo "Processing variable (MAP) ... ${_key} .:. ${_val}" >&2
fi

if [ "${_key:0:1}" = "." ]; then
JAVA_OPTS="${JAVA_OPTS:-} -D${_key:1}=\"${_val}\""
Expand Down

0 comments on commit 941cf4c

Please sign in to comment.