[hackers] [smdev] Hardcode the name in simevent usage || sin

From: <git_AT_suckless.org>
Date: Sat, 28 Feb 2015 08:30:58 +0100 (CET)

commit 0874cdcfbe0b1d1f3d3d0fa52d226bb6c4c46482
Author: sin <sin_AT_2f30.org>
Date: Sat Feb 28 07:30:21 2015 +0000

    Hardcode the name in simevent usage

diff --git a/bin/simevent b/bin/simevent
index 0ab4c4c..3a3912f 100755
--- a/bin/simevent
+++ b/bin/simevent
_AT_@ -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
 
Received on Sat Feb 28 2015 - 08:30:58 CET

This archive was generated by hypermail 2.3.0 : Sat Feb 28 2015 - 08:36:08 CET