diff --git a/.launch/FreeDoom.game b/.launch/FreeDoom.game index 5b5f63f..b50e556 100755 --- a/.launch/FreeDoom.game +++ b/.launch/FreeDoom.game @@ -245,6 +245,7 @@ while [[ -z "${gameOption}" ]] || [[ "${gameOption}" == "manual" ]]; do --help-label "Exit" \ --menu "Please select one" 0 0 0 "${doomGames[@]}" --stdout)" buttonCode=$? + [[ $buttonCode -ne 0 ]] && break if [[ "${gameOption}" == "manual" ]]; then audio_manual fi