Fix arg num check.

This commit is contained in:
Darko Poljak 2016-07-15 22:33:33 +02:00
parent 12faca578f
commit 0f2cda06b1
2 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ eof
exit 1 exit 1
fi fi
token="$2" token="$2"
if [ $# -ge 2 ] if [ $# -gt 2 ]
then then
archivename="$3" archivename="$3"
else else

View File

@ -226,7 +226,7 @@ eof
exit 1 exit 1
fi fi
token="$2" token="$2"
if [ $# -ge 2 ] if [ $# -gt 2 ]
then then
archivename="$3" archivename="$3"
else else