PHONE control SMS

This commit is contained in:
qo-op 2020-05-28 20:34:39 +02:00
parent b67b3733b1
commit 0330d5c087
1 changed files with 5 additions and 0 deletions

View File

@ -44,6 +44,11 @@ for hashfile in /tmp/loveland_entrance/*; do
[[ ! -f $hashfile ]] && continue
PP=$(cat $hashfile)
PHONE=$(echo $PP | cut -d '|' -f 1)
[[ ! ${#PHONE} -eq 12 ]] && exit 1
[[ ! ${PHONE:3:1} == "6" && ! ${PHONE:3:1} == "7" ]] && exit 1
PARRAIN=$(echo $PP | cut -d '|' -f 2)
NAISSANCE=$(echo $PP | cut -d '|' -f 3)