From 7c35a31affabbab46c9fbec15f30e6f029895428 Mon Sep 17 00:00:00 2001 From: Gandalf Date: Sat, 5 Feb 2022 19:04:26 +0100 Subject: [PATCH] merge/rebase changes in faxreport.sh from master --- faxreport.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/faxreport.sh b/faxreport.sh index 0eff67d..ca54d12 100755 --- a/faxreport.sh +++ b/faxreport.sh @@ -51,10 +51,13 @@ OUTFILE="$DATE-$ID-report.pdf" if [ -z $FILE ] then echo "Fax seems not to be sent successfully (yet). No report available" - read -p "Delete id from history anyways? (y/n) " DIN - if [[ $DF = true && $DIN =~ [yYjJ] ]] + if [ $DF = true ] then - echo "$(grep -v "^$ID$" $BASEPATH/.fax_history)" > $BASEPATH/.fax_history + read -p "Delete id from history anyways? (y/n) " DIN + if [ $DIN =~ [yYjJ] ] + then + echo "$(grep -v "^$ID$" $BASEPATH/.fax_history)" > $BASEPATH/.fax_history + fi fi exit 1 fi