fix termprompt
This commit is contained in:
parent
c15c4095b3
commit
aa06a9d9ec
1 changed files with 2 additions and 2 deletions
|
@ -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)"
|
||||
|
|
Loading…
Reference in a new issue