Commit b0149d74 authored by Scott Duensing's avatar Scott Duensing

Fixed an error condition in tFileBrowser

parent 3e285e47
......@@ -155,11 +155,13 @@ function tFileBrowser() {
__CURDIR=$(pwd)
set +e
__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" \
--ok-button "Select" "${__DIRLIST[@]}" 3>&1 1>&2 2>&3)
__RET=$?
set -e
if [[ ${__RET} -eq 1 ]]; then
# User Selected Cancel
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment