From 0bf330dc574e3eae8e5fec15e6d09bffa1597056 Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Sun, 27 Mar 2022 10:07:37 +1100 Subject: [PATCH] added single quotes around config values --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index ab20d20..67ea3ad 100644 --- a/functions +++ b/functions @@ -8,7 +8,7 @@ die() { # grab and set a configuration variable # $1 = variable, [ $2 = default .. error otherwise ] config() { - eval $1="$(sed "/^$1=.*/{s|^$1=||;b};d" $CONFIG)" + eval $1="'$(sed "/^$1=.*/{s|^$1=||;b};d" $CONFIG)'" [ -z "$(eval echo "\$$1")" ] || return 0 [ $# -lt 2 ] && die "Missing $1=... in $CONFIG" eval $1="'$2'" -- 2.39.2