結果 : bash save exit code of command to variable