X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=functions;h=67ea3ad51b143476c0ba5f3a82bfaa52d438c4ee;hb=018cee4d13bc670479131ae2167dad4824ab1c47;hp=ab20d20ace23d5c7f3e265f4cf7d1d469479dd7b;hpb=ef6c97b7a2af91b303b78dbe606b77cf76588a0b;p=rrq%2Foverlay-boot.git 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'"