projects
/
selector.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1aa5650
)
Made the UMASK variables local, otherwise selector-cd-search still changes the umask.
author
Francois Fleuret
<francois@fleuret.org>
Wed, 18 Feb 2015 15:00:22 +0000
(16:00 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Wed, 18 Feb 2015 15:00:22 +0000
(16:00 +0100)
bash-selector.sh
patch
|
blob
|
history
diff --git
a/bash-selector.sh
b/bash-selector.sh
index
9d0355f
..
7246d45
100755
(executable)
--- 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