From 438a2b561178e52d98451e167ab0dd11a615f2d6 Mon Sep 17 00:00:00 2001 From: Yang Liu Date: Fri, 19 Feb 2021 00:15:18 +0800 Subject: [PATCH] bug fix --- scripts/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update.sh b/scripts/update.sh index 5673a05..092bb4b 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -49,7 +49,7 @@ while read -r line; do echo "${line}" | grep -e '.*=.*' > /dev/null if [ $? -eq 0 ]; then var_name=$(echo "${line}" | awk -F '=' '{print $1}') - var_value=$(eval echo \${$var_name}) + var_value="$(eval echo \${$var_name})" [ ! -z "${var_value}" ] && set_acg_cfg "${var_name}" "${var_value}" fi done < "${cfg_file}"