Relax the argument checking - it caused it to fail in the perfectly
legitimate cd-to-worm copy case.
This commit is contained in:
parent
1c41fd74b9
commit
7d1e36586d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user