From b0149d74174a600afa1fa0220abcfd4c47d7173a Mon Sep 17 00:00:00 2001 From: Scott Duensing Date: Thu, 11 Jul 2019 20:00:15 -0500 Subject: [PATCH] Fixed an error condition in tFileBrowser --- towel.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/towel.sh b/towel.sh index 6f1b4df..23d280f 100755 --- a/towel.sh +++ b/towel.sh @@ -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