From 1466e427f9330b8d3737e3870a8e7ce9d156c423 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Wed, 18 Feb 2015 16:00:22 +0100 Subject: [PATCH] Made the UMASK variables local, otherwise selector-cd-search still changes the umask. --- bash-selector.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bash-selector.sh b/bash-selector.sh index 9d0355f..7246d45 100755 --- a/bash-selector.sh +++ b/bash-selector.sh @@ -61,7 +61,7 @@ export SELECTOR_CD_HISTORY_SIZE # The function to use in place of the standard "cd" function selector-cd () { - UMASK=$(umask) + local UMASK=$(umask) umask 077 if [[ -z "$1" ]]; then @@ -82,7 +82,7 @@ function selector-cd () { } function selector-cd-search () { - UMASK=$(umask) + local UMASK=$(umask) umask 077 if [[ -f "${SELECTOR_CD_HISTORY}" ]]; then -- 2.20.1