Option -d for faxreport
This commit is contained in:
parent
02779f34f7
commit
b0d3413938
16
faxreport.sh
16
faxreport.sh
|
@ -51,8 +51,22 @@ 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 && $DIN =~ [yYjJ] ]]
|
||||||
|
then
|
||||||
|
echo "$(grep -v "^$ID$" $BASEPATH/.fax_history)" > $BASEPATH/.fax_history
|
||||||
|
fi
|
||||||
exit 1
|
exit 1
|
||||||
else
|
fi
|
||||||
|
if [ $PF = false ]
|
||||||
|
then
|
||||||
echo "Speichere Report in $OUTFILE"
|
echo "Speichere Report in $OUTFILE"
|
||||||
curl $FILE --output $OUTFILE -s
|
curl $FILE --output $OUTFILE -s
|
||||||
|
else
|
||||||
|
echo "Schicke Report an Drucker"
|
||||||
|
curl $FILE -s --output - | ln
|
||||||
|
fi
|
||||||
|
if [ $DF = true ]
|
||||||
|
then
|
||||||
|
grep -v $ID $BASEPATH/.fax_history > $BASEPATH/.fax_history
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue