From aa06a9d9ecb8f05b0367cee0cf2c24e1e32b1d60 Mon Sep 17 00:00:00 2001 From: tavo Date: Thu, 16 May 2024 14:41:33 -0600 Subject: [PATCH] fix termprompt --- 04-main.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)"