dunstctl: Use = rather than == for string equality
`==` is not supported in plain sh
This commit is contained in:
		
							parent
							
								
									d45d26e257
								
							
						
					
					
						commit
						6a8401d85a
					
				
							
								
								
									
										4
									
								
								dunstctl
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								dunstctl
									
									
									
									
									
								
							| @ -63,7 +63,7 @@ case "${1:-}" in | ||||
| 	"status-set") | ||||
| 		[ "${2:-}" ] \ | ||||
| 			|| die "No status parameter specified. Please give either 'true' or 'false' as running parameter." | ||||
| 		[ "${2}" == "true" ] || [ "${2}" == "false" ] \ | ||||
| 		[ "${2}" = "true" ] || [ "${2}" = "false" ] \ | ||||
| 			|| die "Please give either 'true' or 'false' as running parameter." | ||||
| 		property_set running variant:boolean:"${2}" | ||||
| 		;; | ||||
| @ -77,7 +77,7 @@ case "${1:-}" in | ||||
| 		dbus-send --print-reply=literal --dest="${DBUS_NAME}" "${DBUS_PATH}" "${DBUS_IFAC_FDN}.GetServerInformation" \ | ||||
| 			| ( | ||||
| 					read name vendor version protocol_version | ||||
| 					[ "${name}" == dunst ] | ||||
| 					[ "${name}" = "dunst" ] | ||||
| 					printf "dunst version: %s\n" "${version}" | ||||
| 				) \ | ||||
| 			|| die "Another notification manager is running. It's not dunst" | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Nikos Tsipinakis
						Nikos Tsipinakis