reading from stdin is back!

This commit is contained in:
Jérémy Lecour 2019-03-13 15:40:48 +01:00 committed by Jérémy Lecour
parent 7a2945a1e3
commit 72f7dc1159

View file

@ -396,9 +396,10 @@ if [ -n "${GIT_STATUSES}" ] && [ "${INTERACTIVE}" = "1" ]; then
printf "/!\ There are some uncommited changes.\n%s\n\n" "${GIT_STATUSES}"
fi
if [ -z "${MESSAGE}" ] && [ "${INTERACTIVE}" = "1" ]; then
# get input from stdin
printf "> Please, enter details about your maintenance:\n"
if [ -z "${MESSAGE}" ]; then
if [ "${INTERACTIVE}" = "1" ]; then
printf "> Please, enter details about your maintenance:\n"
fi
read -r MESSAGE
fi