mirror of
				https://github.com/Clortox/drone-ntfy.git
				synced 2025-07-17 14:12:10 +00:00 
			
		
		
		
	Add Icon and Attachment support
This commit is contained in:
		
							parent
							
								
									4bab19d289
								
							
						
					
					
						commit
						e2b8c00ea9
					
				
							
								
								
									
										13
									
								
								main.sh
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								main.sh
									
									
									
									
									
								
							| @ -6,7 +6,6 @@ Priority=${PLUGIN_PRIORITY:-} | ||||
| Title=${PLUGIN_TITLE:-} | ||||
| Tags=${PLUGIN_TAGS:-} | ||||
| Click=${PLUGIN_CLICK:-} | ||||
| 
 | ||||
| Attach=${PLUGIN_ATTACH:-} | ||||
| Icon=${PLUGIN_ICON:-} | ||||
| 
 | ||||
| @ -33,5 +32,13 @@ if [[ ! -z $Click ]]; then | ||||
|     Click="-H Click:$Click" | ||||
| fi | ||||
| 
 | ||||
| curl $Priority $Title $Tags $Click -u $Username:$Password -d "$Message" $URL/$Topic | ||||
| #echo curl $Priority $Title $Tags $Click -u $Username:$Password -d "$Message" $URL/$Topic | ||||
| if [[ ! -z $Attach ]]; then | ||||
|     Attach="-H Attach:$Attach" | ||||
| fi | ||||
| 
 | ||||
| if [[ ! -z $Icon ]]; then | ||||
|     Icon="-H Icon:$Icon" | ||||
| fi | ||||
| 
 | ||||
| curl $Priority $Title $Tags $Click $Attach $Icon -u $Username:$Password -d "$Message" $URL/$Topic | ||||
| #curl $Priority $Title $Tags $Click $Attach $Icon -u $Username:$Password -d "$Message" $URL/$Topic | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Tyler Perkins
						Tyler Perkins