Fixed an error condition in tFileBrowser

This commit is contained in:
Scott Duensing 2019-07-11 20:00:15 -05:00
parent 3e285e4737
commit b0149d7417

View file

@ -155,11 +155,13 @@ function tFileBrowser() {
__CURDIR=$(pwd) __CURDIR=$(pwd)
set +e
__SELECTION=$(whiptail --title "${__TITLE}" \ __SELECTION=$(whiptail --title "${__TITLE}" \
--menu "PgUp/PgDn/Arrows ENTER Selects File/Folder\nor TAB Key\n\n${__CURDIR}" 0 0 0 \ --menu "PgUp/PgDn/Arrows ENTER Selects File/Folder or TAB Key\n\n${__CURDIR}" 0 0 0 \
--cancel-button "Cancel" \ --cancel-button "Cancel" \
--ok-button "Select" "${__DIRLIST[@]}" 3>&1 1>&2 2>&3) --ok-button "Select" "${__DIRLIST[@]}" 3>&1 1>&2 2>&3)
__RET=$? __RET=$?
set -e
if [[ ${__RET} -eq 1 ]]; then if [[ ${__RET} -eq 1 ]]; then
# User Selected Cancel # User Selected Cancel