diff --git a/04-main.sh b/04-main.sh index 5bb03c4..7b06710 100644 --- a/04-main.sh +++ b/04-main.sh @@ -69,11 +69,11 @@ if [ "$MENU" = "zenity" ] ; then elif [ "$MENU" = "term" ] ; then term_prompt info "$PROMPT_WELCOME" && read -r NULL - ! command -v curl && term_prompt error "$TITLE" "$PROMPT_ERR_DEPS curl" && exit 1 + ! command -v curl >/dev/null 2>&1 && term_prompt error "$PROMPT_ERR_DEPS curl" && exit 1 # Serial number is required for download term_prompt entry "$PROMPT_SERIAL" && read -r SERIAL - [ -z "$SERIAL" ] && term_prompt error "$TITLE" "$PROMPT_ERR_SERIAL" && exit 1 + [ -z "$SERIAL" ] && term_prompt error "$PROMPT_ERR_SERIAL" && exit 1 echo_debug "Generar tempkey y obtener URL de descarga" # DEBUG ARCHIVE="$(get_archive)"