_ID_ & _PHONE_ are replaced with GUILDE member attributes

This commit is contained in:
qo-op 2021-07-09 14:27:23 +02:00
parent 1e7f18d125
commit 38cc24db7e
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ for tosend in /home/${YOU}/.zen/SMS/PHONE/*/*.tosend.sh; do
phone=$(cat /tmp/${phonehash}.phone)
echo "${phone}"
cat "${tosend}" | sed "s/_PHONE_/${phone}/g" > /tmp/tosend.sh && chmod +x /tmp/tosend.sh
cat "${tosend}" | sed "s/_PHONE_/${phone}/g" | sed sed "s/_ID_/${xzuid}/g" > /tmp/tosend.sh && chmod +x /tmp/tosend.sh
bash -x /tmp/tosend.sh && mv ${tosend} ${tosend}.txt && rm /tmp/tosend.sh || mv ${tosend} ${tosend}.error.txt
sleep 3
done
@ -38,7 +38,7 @@ for guidesend in /home/${YOU}/.zen/SMS/GUILDES/*/OUTPUT/*.tosend.sh; do
[[ ! -L $phonelink ]] && continue
phone=$(echo "$phonelink" | cut -d '/' -f 9)
cat "${guidesend}" | sed "s/_PHONE_/${phone}/g" > /tmp/guidesend.sh && chmod +x /tmp/guidesend.sh
cat "${guidesend}" | sed "s/_PHONE_/${phone}/g" | sed sed "s/_ID_/${xzuid}/g" > /tmp/guidesend.sh && chmod +x /tmp/guidesend.sh
bash -x /tmp/guidesend.sh
sleep 3
done