Browse Source

set var the right way

feature-projects-to-settings
6543 4 years ago
parent
commit
d63343865c
  1. 4
      src/func/config_load

4
src/func/config_load

@ -42,8 +42,8 @@ function config_load() {
config_value="${config_value/<TIME>/`date '+%H:%M:%S'`}"

#save seting in environment var
export "$config_key=$config_value"
echo "$config_key=$config_value"
eval "$config_key=\"$config_value\""
echo $config_key=${!config_key}

else
echo "WARNUNG: $config_key is an inconrect setting. This will be ignored"

Loading…
Cancel
Save