smdev

suckless mdev
git clone git://git.2f30.org/smdev
Log | Files | Refs | README | LICENSE

commit c3a01144d7255d465394b66a4e05e5a433bfd05a
parent 7fd04dd5164ef69238418b90bc2bb7103f3bf529
Author: sin <sin@2f30.org>
Date:   Sat, 28 Feb 2015 07:30:21 +0000

Hardcode the name in simevent usage

Diffstat:
Mbin/simevent | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/bin/simevent b/bin/simevent @@ -4,9 +4,7 @@ # into the uevent files. if [ "$#" -ne 1 ] || [ "$1" != add ] && [ "$1" != remove ]; then - # warning: can't trust $0, better off just hard coding the name - # echo "usage: simevent add|remove" 1>&2 - printf "usage: %s add|remove\n" "${0##*/}" 1>&2 + echo "usage: simevent add|remove" 1>&2 exit 1 fi