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