Add options to enable/disable hooks (sending mail, commit /etc/.git, save to database…) #7

Merged
jlecour merged 61 commits from options into master 2019-03-26 15:14:12 +01:00
Showing only changes of commit d01e79e832 - Show all commits

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}"