From df56eddadb41da398ab0c094a38f5068eda35ba8 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 11 Apr 2014 17:35:15 +0100 Subject: [PATCH] better usage message --- notify | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/notify b/notify index 83bf608..f47a19d 100755 --- a/notify +++ b/notify @@ -1,10 +1,21 @@ #!/bin/bash set -e +usage () { cat <&2 "usage: ./notify senderfile recipientsfile 'message'" - exit 1 ;; +*) usage >&2; exit 1 ;; esac senderinfo="$1" -- 2.30.2