Ooops, I've made an error in my integer check, fixed it now

This commit is contained in:
Jack-Benny Persson 2013-12-24 09:45:00 +01:00
parent 46255f9b3f
commit 187223e542

View File

@ -15,7 +15,10 @@ if [ $# -ne 2 ]; then
exit 2
fi
if ! [ $Nr1 -eq $Nr2 &> /dev/null ]; then
if ! [ $Nr1 -eq $Nr1 &> /dev/null ]; then
echo "`basename $0` only takes integers"
exit 2
elif ! [ $Nr2 -eq $Nr2 &> /dev/null ]; then
echo "`basename $0` only takes integers"
exit 2
fi