function Check(){ CheckRes=0 if [[ $1 -ne 0 ]] then CheckRes=1 fi return $CheckRes } export -f Check