Tellme script can now tell if post failed.
This is a very fragile implementation of this, but I didn't want to add any dependencies to this script since I want it to be able to portable above all else. If anyone has a better solution I would love to hear it.
This commit is contained in:
		
							parent
							
								
									73c40c8e4b
								
							
						
					
					
						commit
						a1e365546b
					
				| 
						 | 
					@ -38,7 +38,8 @@ curl -s \
 | 
				
			||||||
  --form-string "token=$application_token" \
 | 
					  --form-string "token=$application_token" \
 | 
				
			||||||
  --form-string  "user=$user_token" \
 | 
					  --form-string  "user=$user_token" \
 | 
				
			||||||
  --form-string  "message=$message" \
 | 
					  --form-string  "message=$message" \
 | 
				
			||||||
  https://api.pushover.net/1/messages.json 1>/dev/null
 | 
					  https://api.pushover.net/1/messages.json \
 | 
				
			||||||
 | 
					  | grep "\"status\":1," 1>/dev/null
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[[ $? -eq 0 ]] && echo "message sent" || echo "ERROR SENDING NOTIFICATION"
 | 
					[[ $? -eq 0 ]] && echo "message sent" || echo "ERROR SENDING NOTIFICATION"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user