結果 : bash save status code to variable