moving template email after guilde members loop

This commit is contained in:
qo-op 2021-07-08 14:33:21 +02:00
parent 86bf76c180
commit 73b5718b32
1 changed files with 3 additions and 1 deletions

View File

@ -39,11 +39,13 @@ for guidesend in /home/${YOU}/.zen/SMS/GUILDES/*/OUTPUT/*.tosend.sh; do
phone=$(echo "$phonelink" | cut -d '/' -f 9)
cat "${guidesend}" | sed "s/_PHONE_/${phone}/g" > /tmp/guidesend.sh && chmod +x /tmp/guidesend.sh
bash -x /tmp/guidesend.sh && mv ${guidesend} ${guidesend}.txt && rm /tmp/guidesend.sh || mv ${guidesend} ${guidesend}.error.txt
bash -x /tmp/guidesend.sh
sleep 3
done
mv ${guidesend} ${guidesend}.txt && rm /tmp/guidesend.sh || mv ${guidesend} ${guidesend}.error.txt
done
## REINIT gammu-smsd spool
sudo rm /var/spool/gammu/inbox/* 2>/dev/null
sudo rm /var/spool/gammu/error/* 2>/dev/null