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 cf05263adb - Show all commits

View file

@ -346,10 +346,9 @@ if [ "${INTERACTIVE}" = "1" ]; then
echo ""
y="Y"; n="n"
question="Do you want to commit the changes? [${y}${n}] "
answer=""
while true; do
echo "${question}"
echo "Do you want to commit the changes? [${y}${n}] "
read -r answer
case $answer in
[Yy] )
@ -384,10 +383,9 @@ if [ "${INTERACTIVE}" = "1" ]; then
else
y="y"; n="N"
fi
question="\nDo you want to insert your message into the database? [${y}${n}] "
answer=""
while true; do
echo "${question}"
echo "Do you want to insert your message into the database? [${y}${n}] "
read -r answer
case $answer in
[Yy] )