[report_account] fix checkbashisms
should close Debian Bug report logs - #772357
This commit is contained in:
parent
393f25a511
commit
fca4ece387
1 changed files with 8 additions and 8 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
# Rapport des comptes bancaires
|
# Rapport des comptes bancaires
|
||||||
# Liste l'intégralité des comptes dans Boobank, leurs dernières opérations et les opérations à venir
|
# Liste l'intégralité des comptes dans Boobank, leurs dernières opérations et les opérations à venir
|
||||||
# et envoie ça par mail si --mail machin@example.tld est spécifié, sinon ça affiche
|
# et envoie ça par mail si --mail machin@example.tld est spécifié, sinon ça affiche
|
||||||
|
|
@ -18,22 +18,22 @@ do
|
||||||
boobank -q -f table coming "$i" > ${TMPSTORAGE}/account_coming_${i}
|
boobank -q -f table coming "$i" > ${TMPSTORAGE}/account_coming_${i}
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Bank accounts report, generated by boobank\n" > ${TMPSTORAGE}/account_mail
|
printf "Bank accounts report, generated by boobank\n" > ${TMPSTORAGE}/account_mail
|
||||||
cat ${TMPSTORAGE}/account_list >> ${TMPSTORAGE}/account_mail
|
cat ${TMPSTORAGE}/account_list >> ${TMPSTORAGE}/account_mail
|
||||||
echo >> ${TMPSTORAGE}/account_mail
|
printf "\n" >> ${TMPSTORAGE}/account_mail
|
||||||
|
|
||||||
for i in $ACCOUNTS
|
for i in $ACCOUNTS
|
||||||
do
|
do
|
||||||
echo "Last operations for account $i \n" >> ${TMPSTORAGE}/account_mail
|
printf "Last operations for account $i \n" >> ${TMPSTORAGE}/account_mail
|
||||||
cat ${TMPSTORAGE}/account_history_${i} >> ${TMPSTORAGE}/account_mail
|
cat ${TMPSTORAGE}/account_history_${i} >> ${TMPSTORAGE}/account_mail
|
||||||
echo >> ${TMPSTORAGE}/account_mail
|
printf >> ${TMPSTORAGE}/account_mail
|
||||||
if [ -s ${TMPSTORAGE}/account_coming_${i} ]
|
if [ -s ${TMPSTORAGE}/account_coming_${i} ]
|
||||||
then
|
then
|
||||||
echo "Coming operations for account $i \n" >> ${TMPSTORAGE}/account_mail
|
printf "Coming operations for account $i \n" >> ${TMPSTORAGE}/account_mail
|
||||||
cat ${TMPSTORAGE}/account_coming_${i} >> ${TMPSTORAGE}/account_mail
|
cat ${TMPSTORAGE}/account_coming_${i} >> ${TMPSTORAGE}/account_mail
|
||||||
echo >> ${TMPSTORAGE}/account_mail
|
printf >> ${TMPSTORAGE}/account_mail
|
||||||
else
|
else
|
||||||
echo "No coming operation for $i \n" >> ${TMPSTORAGE}/account_mail
|
printf "No coming operation for $i \n" >> ${TMPSTORAGE}/account_mail
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue