Accept commands with no arguments
This commit is contained in:
2
rr
2
rr
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
[ $# -eq 1 ] && echo "usage: $0 command ..." && exit 64
|
[ $# -eq 0 ] && echo "usage: $0 command ..." && exit 64
|
||||||
tmp1=$(mktemp $0.XXXXXXXXXX)
|
tmp1=$(mktemp $0.XXXXXXXXXX)
|
||||||
tmp2=$(mktemp $0.XXXXXXXXXX)
|
tmp2=$(mktemp $0.XXXXXXXXXX)
|
||||||
trap "rm $tmp1 $tmp2; exit 0" 1 2 15
|
trap "rm $tmp1 $tmp2; exit 0" 1 2 15
|
||||||
|
Reference in New Issue
Block a user