fix termprompt

This commit is contained in:
tavo 2024-05-16 14:41:33 -06:00
parent c15c4095b3
commit aa06a9d9ec

View file

@ -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)"