From 231caf739593dc8cebcfb399c6a86bcfb49e64d5 Mon Sep 17 00:00:00 2001 From: qo-op Date: Sat, 13 Jun 2020 13:37:10 +0200 Subject: [PATCH] double auth have to be checked now --- g1sms/sms_ASTROPORT.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/g1sms/sms_ASTROPORT.sh b/g1sms/sms_ASTROPORT.sh index 6a2cf06..ffd3d3a 100755 --- a/g1sms/sms_ASTROPORT.sh +++ b/g1sms/sms_ASTROPORT.sh @@ -94,10 +94,11 @@ for hashfile in /tmp/loveland_entrance/*; do done ## CHECK FOR DOUBLE AUTH REQUEST -[[ ! -f /tmp/sms.commands ]] && exit 1 -for phone_auth in $(cat /tmp/sms.auth.commands) do - $MY_PATH/sms_AUTH.sh $phone_auth -done +if [[ -f /tmp/sms.auth.commands ]]; then + for phone_auth in $(cat /tmp/sms.auth.commands) do + $MY_PATH/sms_AUTH.sh $phone_auth + done +fi [[ -d /home/$YOU/.zen/g1sms/$PHONE ]] && [[ $(whoami) == "root" ]] && chown -R $YOU /home/$YOU/.zen/g1sms/$PHONE