Suppression d'instruction pour le debug

This commit is contained in:
Beu 2017-11-22 13:40:08 +01:00
parent 9ef990de15
commit bce17c58c0
1 changed files with 39 additions and 40 deletions

View File

@ -3,6 +3,7 @@
SECRETKEY=''
PHONENUM=''
DATE=`date --date="1 minute ago" +'%Y-%m-%d %H:%M:%S'`
OTP=`oathtool -w 3 --now="$DATE" --totp -b $SECRETKEY`
@ -11,8 +12,6 @@ CMD=`echo $SMS_1_TEXT | awk '{print tolower($1)}'`
TEXT=`echo $SMS_1_TEXT | awk '{for (i=2; i<NF; i++) print $i}'`
MATCH=`echo $OTP | grep $OTPFROMCLIENT`
echo $OTP >> /var/log/gammu_receive.log
if [[ $SMS_1_NUMBER -eq $PHONENUM ]]; then
if [[ -n $MATCH ]] ;then
case $CMD in