比如
function exist_venom(){
res=0
return $res
}
if [[ "$(exist_venom "$n")" == "0" ]]; then echo "Info: success" fi
发现我这样判断不行,应该怎么判断?
比如
function exist_venom(){
res=0
return $res
}
if [[ "$(exist_venom "$n")" == "0" ]]; then echo "Info: success" fi
发现我这样判断不行,应该怎么判断?