Accept commands with no arguments

This commit is contained in:
Adolfo Perez Alvarez 2024-06-17 12:11:11 +02:00
parent 66c1da49fb
commit 54217f9944

2
rr
View File

@ -1,5 +1,5 @@
#!/bin/sh
[ $# -eq 1 ] && echo "usage: $0 command ..." && exit 64
[ $# -eq 0 ] && echo "usage: $0 command ..." && exit 64
tmp1=$(mktemp $0.XXXXXXXXXX)
tmp2=$(mktemp $0.XXXXXXXXXX)
trap "rm $tmp1 $tmp2; exit 0" 1 2 15