Skip to content

Instantly share code, notes, and snippets.

@fefz
Last active August 20, 2017 23:48
Show Gist options
  • Save fefz/841b69d1af69320ea03fd52eb2121c0e to your computer and use it in GitHub Desktop.
Save fefz/841b69d1af69320ea03fd52eb2121c0e to your computer and use it in GitHub Desktop.
access google voice
#!/bin/bash
#replace `curl link` with your curl link
test(){
res=$(`curl link` -s)
if [[ ${res:0-9:5} -eq "again" ]]; then
echo ${res:0-9:5}
sleep 3
test
elif [[ ! ${res:0-9:5} -eq "again" ]]; then
echo "exit"
fi
}
test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment