merge/rebase changes in faxreport.sh from master

This commit is contained in:
Gandalf 2022-02-05 19:04:26 +01:00
parent de37f626c7
commit 7c35a31aff

View file

@ -51,10 +51,13 @@ OUTFILE="$DATE-$ID-report.pdf"
if [ -z $FILE ] if [ -z $FILE ]
then then
echo "Fax seems not to be sent successfully (yet). No report available" 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 ]
if [[ $DF = true && $DIN =~ [yYjJ] ]]
then 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 fi
exit 1 exit 1
fi fi