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