Hardcode the name in simevent usage - smdev - suckless mdev
(HTM) git clone git://git.suckless.org/smdev
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 0874cdcfbe0b1d1f3d3d0fa52d226bb6c4c46482
(DIR) parent f8534bbc2f38111b8756c91c6f41ccd557dec2a1
(HTM) Author: sin <sin@2f30.org>
Date: Sat, 28 Feb 2015 07:30:21 +0000
Hardcode the name in simevent usage
Diffstat:
M bin/simevent | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
(DIR) 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