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:
commit
a4c4c5ec2c
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user