Supposing your array is $errors , just check to see if the count of elements is zero. if [ ${#errors[@]} -eq 0 ]; then echo "No errors, hooray" else echo ...
確定! 回上一頁