set var the right way

This commit is contained in:
6543 2018-06-02 23:09:05 +02:00
parent 888f626d4f
commit d63343865c
1 changed files with 2 additions and 2 deletions

View File

@ -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"