Relax the argument checking - it caused it to fail in the perfectly

legitimate cd-to-worm copy case.
This commit is contained in:
Jordan K. Hubbard 1996-10-04 12:30:16 +00:00
parent 1c41fd74b9
commit 7d1e36586d

View File

@ -25,8 +25,6 @@ fi
if [ $# -lt 1 ]; then
echo "usage: $0 input-file"
elif [ ! -f $1 ]; then
echo "$0: $1 is not a valid file."
elif [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
else