From ba3c27147d1ad888c47743efbc91fc723a4155df Mon Sep 17 00:00:00 2001 From: deicidus Date: Fri, 16 Jun 2023 01:40:21 -0700 Subject: [PATCH] POSIX --- spells/install-service-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spells/install-service-template b/spells/install-service-template index 049416f..67338b1 100755 --- a/spells/install-service-template +++ b/spells/install-service-template @@ -43,7 +43,7 @@ while IFS= read -r line; do if echo "$line" | grep -q '\$'; then var=$(echo "$line" | sed -n -e 's/^.*\$\([A-Z_]*\).*$/\1/p') if [ -n "$var" ]; then - value="${!var}" + eval value=\$$var if [ -z "$value" ]; then echo "Enter a value for $var: " read -r value