Fix _lp_bool

This commit is contained in:
Olivier Mengué 2014-07-09 22:50:05 +02:00
parent d48aba79a9
commit a7657ec622

View File

@ -104,7 +104,11 @@ fi
_lp_bool()
{
local res=${2:-$?}
[[ $res = 0 ]] && eval $1=true || eval $1=false
if [[ $res = 0 ]]; then
eval $1=true
else
eval $1=false
fi
return $res
}