Skip to content

Commit

Permalink
RANGER-4438: updated to remove leading/trailing quotes in property va…
Browse files Browse the repository at this point in the history
…lues - #2
  • Loading branch information
mneethiraj committed Nov 30, 2023
1 parent 04c93b3 commit 9480eb9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion kms/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ get_prop_or_default() {
value=$(echo $validateProperty | cut -d "=" -f2-)
fi

echo $value
if [[ $1 == *password* ]]
then
echo $value
else
echo $value | tr -d \'\"
fi
}

PYTHON_COMMAND_INVOKER=$(get_prop 'PYTHON_COMMAND_INVOKER' $PROPFILE)
Expand Down
7 changes: 6 additions & 1 deletion security-admin/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ get_prop_or_default() {
value=$(echo $validateProperty | cut -d "=" -f2-)
fi

echo $value
if [[ $1 == *password* ]]
then
echo $value
else
echo $value | tr -d \'\"
fi
}

PROPFILE=${RANGER_ADMIN_CONF:-$PWD}/install.properties
Expand Down

0 comments on commit 9480eb9

Please sign in to comment.