interpret 'off' as false in getargbool

Signed-off-by: Will Woods <wwoods@redhat.com>
master
Will Woods 2012-01-11 12:48:27 -05:00 committed by Harald Hoyer
parent ce32e32f2a
commit 1cc57edaf5
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ getargbool() {
if [ -n "$_b" ]; then
[ $_b = "0" ] && return 1
[ $_b = "no" ] && return 1
[ $_b = "off" ] && return 1
fi
return 0
}