2
0
mirror of https://github.com/narkoz/hacker-scripts synced 2025-08-23 10:57:13 +00:00

Merge pull request #22 from carlosdp/patch-2

Change hangover.sh to use more modern /Messages
This commit is contained in:
Nihad Abbasov 2015-11-24 03:30:19 +04:00
commit a4c4c5ec2c

View File

@ -30,7 +30,7 @@ MESSAGE="Gonna work from home. "$RANDOM_EXCUSE
# Send a text message # Send a text message
RESPONSE=`curl -fSs -u "$TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN" \ RESPONSE=`curl -fSs -u "$TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN" \
-d "From=$MY_NUMBER" -d "To=$NUMBER_OF_BOSS" -d "Body=$MESSAGE" \ -d "From=$MY_NUMBER" -d "To=$NUMBER_OF_BOSS" -d "Body=$MESSAGE" \
"https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/SMS/Messages"` "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Messages"`
# Log errors # Log errors
if [ $? -gt 0 ]; then if [ $? -gt 0 ]; then