deicidus 2 years ago
parent
commit
ba3c27147d
  1. 2
      spells/install-service-template

2
spells/install-service-template

@ -43,7 +43,7 @@ while IFS= read -r line; do
if echo "$line" | grep -q '\$'; then if echo "$line" | grep -q '\$'; then
var=$(echo "$line" | sed -n -e 's/^.*\$\([A-Z_]*\).*$/\1/p') var=$(echo "$line" | sed -n -e 's/^.*\$\([A-Z_]*\).*$/\1/p')
if [ -n "$var" ]; then if [ -n "$var" ]; then
value="${!var}" eval value=\$$var
if [ -z "$value" ]; then if [ -z "$value" ]; then
echo "Enter a value for $var: " echo "Enter a value for $var: "
read -r value read -r value

Loading…
Cancel
Save