From 72f7dc1159612e201b0a22a886525aa21d23a72f Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Wed, 13 Mar 2019 15:40:48 +0100 Subject: [PATCH] reading from stdin is back! --- evomaintenance.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/evomaintenance.sh b/evomaintenance.sh index 346a82b..6b1fdc7 100755 --- a/evomaintenance.sh +++ b/evomaintenance.sh @@ -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