fix variable not be assigned

This commit is contained in:
Jesús 2021-07-16 16:40:32 -05:00
parent 61eb458eb7
commit c26d6ba30e
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -179,7 +179,7 @@ selectdisk(){
options+=("${item}" "")
done
IFS=$IFS_ORIG
result=$(whiptail --backtitle "${APPTITLE}" --title "${1}" --menu "" 0 0 0 "${options[@]}" 3>&1 1>&2 2>&3)
result=$(whiptail --backtitle "${apptitle}" --title "${1}" --menu "" 0 0 0 "${options[@]}" 3>&1 1>&2 2>&3)
if [ "$?" != "0" ]
then
return 1
@ -781,7 +781,7 @@ selectmirrorsbycountry() {
options+=("${item}" "")
done
IFS=$IFS_ORIG
country=$(whiptail --backtitle "${APPTITLE}" --title "${txtselectcountry}" --menu "" 0 0 0 "${options[@]}" 3>&1 1>&2 2>&3)
country=$(whiptail --backtitle "${apptitle}" --title "${txtselectcountry}" --menu "" 0 0 0 "${options[@]}" 3>&1 1>&2 2>&3)
if [ "$?" != "0" ]; then
return 1
fi