summaryrefslogtreecommitdiff
path: root/scripts/nsend
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2024-08-10 13:36:41 +0400
committerSuleyman Farajli <suleyman@farajli.net>2024-08-10 13:36:41 +0400
commit260c9752b487aad4e8242206931be3b192551808 (patch)
tree6742e9b31461ac71525358f759019bb37566d23b /scripts/nsend
parent33c8d9ad866c29987287f3b13f058234fdcb8a04 (diff)
nsend: typo fixed
Diffstat (limited to 'scripts/nsend')
-rwxr-xr-xscripts/nsend8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/nsend b/scripts/nsend
index 05a1467..81a852f 100755
--- a/scripts/nsend
+++ b/scripts/nsend
@@ -2,7 +2,7 @@
help() {
cat << EOF
-${0}: Wrapper script to send notifications
+${0}: Wrapper script to send notifications
options:
-s [Msg] Send Msg
@@ -27,18 +27,18 @@ run() {
}
if ! command -v notify-send > /dev/null 2>&1; then
- err "${0}: xwallpaper must be installed"
+ err "${0}: dunst must be installed"
fi
case "${1}" in
-"-s")
+"-s")
[ ${#} != 2 ] && err "${0}: Invalid usage" "Try '${0} -h' for help."
run "notify-send ${2}" \
"${0}: Failed to send notification"
;;
"-h") help; exit 0 ;;
-
+
*) err "${0}: Invalid usage" "Try '${0} -h' for help." ;;
esac