|
|
@ -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 |
|
|
|