結果 : bash save exit code to variable