結果 : bash save error code to variable