Fixed an error condition in tFileBrowser
This commit is contained in:
parent
3e285e4737
commit
b0149d7417
1 changed files with 3 additions and 1 deletions
4
towel.sh
4
towel.sh
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue