Skip to content
This repository has been archived by the owner on Dec 2, 2019. It is now read-only.

Commit

Permalink
Fix for array values such as AUTHORIZED_REMOTE_HOSTS
Browse files Browse the repository at this point in the history
  • Loading branch information
gerhard committed Aug 30, 2012
1 parent 339f7c1 commit 82679fa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libexec/core
Expand Up @@ -153,7 +153,7 @@ __check_config() {

for _required_config in ${REQUIRED_CONFIGS[@]}
do
local _required_config_value="$(echo $(eval echo \$$_required_config))"
local _required_config_value="$(echo $(eval echo \${$_required_config[@]}))"
if [ -z "$_required_config_value" ]
then
_missing_required_configs+=("$_required_config")
Expand All @@ -176,9 +176,9 @@ __check_config() {
then
if [[ $MODE = "plain" ]]
then
printf "%-25s\t%s\n" "${_config_text}$_required_config" "$_required_config_value${txtrst}"
printf "%-30s\t%s\n" "${_config_text}$_required_config" "$_required_config_value${txtrst}"
else
printf "%-25s\t%s\n" "${_config_text}$_required_config" "$_required_config_value"
printf "%-30s\t%s\n" "${_config_text}$_required_config" "$_required_config_value"
fi
fi
done
Expand All @@ -190,14 +190,14 @@ __check_config() {

for _optional_config in ${OPTIONAL_CONFIGS[@]}
do
local _optional_config_value="$(echo $(eval echo \$$_optional_config))"
local _optional_config_value="$(echo $(eval echo \${$_optional_config[@]}))"
if [ -n "$CHECK" ] && [ -n "$_optional_config_value" ]
then
if [[ $MODE = "plain" ]]
then
printf "%-25s\t%s\n" "$_optional_config" "$_optional_config_value"
printf "%-40s\t%s\n" "$_optional_config" "$_optional_config_value"
else
printf "%-25s\t%s\n" "${bldylw}$_optional_config" "$_optional_config_value${txtrst}"
printf "%-40s\t%s\n" "${bldylw}$_optional_config" "$_optional_config_value${txtrst}"
fi
fi
done
Expand Down

0 comments on commit 82679fa

Please sign in to comment.