From 9ea0b7fad949803f53dffe8b689478795168e8af Mon Sep 17 00:00:00 2001 From: qo-op Date: Mon, 12 Jul 2021 12:06:15 +0200 Subject: [PATCH] always resend error.txt SMS --- sms_send_tosend.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sms_send_tosend.sh b/sms_send_tosend.sh index 4fb199e..7ef9bb5 100755 --- a/sms_send_tosend.sh +++ b/sms_send_tosend.sh @@ -17,7 +17,7 @@ sudo service gammu-smsd stop ######################################################################## ######################################################################## echo "RETRY ERROR MESSAGE" -for tosend in /home/${YOU}/.zen/SMS/PHONE/*/*.tosend.sh.error.txt; do +for tosend in /home/${YOU}/.zen/SMS/PHONE/*/*.error.txt; do phonehash=$(echo "${tosend}" | cut -d '/' -f 7) && [[ $phonehash == "*" ]] && continue xzuid=$(cat "/home/${YOU}/.zen/SMS/PHONE/${phonehash}/xzuid.txt") [[ ! $xzuid ]] && echo "ERROR $tosend" && continue