test-notifications: Use command -v instead of which

This commit is contained in:
Salt 2018-11-22 02:45:30 -06:00
parent 68a3550882
commit 77c254531a
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
which notify-send > /dev/null 2>&1 || exit 1
command -v notify-send > /dev/null 2>&1 || exit 1
notify-send -u low "Low Urgency Notification" "This is a simple test notification with low urgency. It's okay to ignore me, I guess."
notify-send -u normal "Normal Urgency Notification" "This is another simple test notification with normal urgency. My information will help you work."
notify-send -u critical "High Urgency Notification" "This notification really should grab your attention! It's important!"