結果 : bash save command exit code to variable