結果 : bash save exit status to variable