add a prompt indicator

This commit is contained in:
Jérémy Lecour 2019-03-09 22:09:26 +01:00
parent ca62314864
commit d01e79e832

View file

@ -348,7 +348,7 @@ if [ "${INTERACTIVE}" = "1" ]; then
y="Y"; n="n"
answer=""
while true; do
echo "Do you want to commit the changes? [${y}${n}] "
echo "> Do you want to commit the changes? [${y}${n}] "
read -r answer
case $answer in
[Yy] )
@ -385,7 +385,7 @@ if [ "${INTERACTIVE}" = "1" ]; then
fi
answer=""
while true; do
echo "Do you want to insert your message into the database? [${y}${n}] "
echo "> Do you want to insert your message into the database? [${y}${n}] "
read -r answer
case $answer in
[Yy] )
@ -421,7 +421,7 @@ if [ "${INTERACTIVE}" = "1" ]; then
fi
answer=""
while true; do
echo "Do you want to send an email to <${EVOMAINTMAIL}>? [${y}${n}e] "
echo "> Do you want to send an email to <${EVOMAINTMAIL}>? [${y}${n}e] "
read -r answer
case $answer in
[Yy] )
@ -432,7 +432,7 @@ if [ "${INTERACTIVE}" = "1" ]; then
break
;;
[Ee] )
echo "To: [${EVOMAINTMAIL}] "
echo "> To: [${EVOMAINTMAIL}] "
read -r mail_recipient
if [ -n "${mail_recipient}" ]; then
EVOMAINTMAIL="${mail_recipient}"