summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2020-08-23 18:55:50 +0200
committerJohannes Altmanninger <aclopte@gmail.com>2020-08-24 19:01:05 +0200
commit9a7d8df44732b684255acd151c4104bf95aeebd5 (patch)
tree19c3ff9ed6bc0e88c285cc39da0b8e2f5f268d93 /share
parent4b7fd68d48061cc9c1cbf4a89ae5b2d60937f7e3 (diff)
Avoid accidentally using environment variables in sh scopes
On the instances with altfile this was already the case, but this makes it more obvious. Closes #3673
Diffstat (limited to 'share')
-rw-r--r--share/kak/kakrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/kak/kakrc b/share/kak/kakrc
index d01224e3..6c322ec4 100644
--- a/share/kak/kakrc
+++ b/share/kak/kakrc
@@ -11,6 +11,7 @@ def -params 1 -docstring "colorscheme <name>: enable named colorscheme" \
find -L "${1}" -type f -name "${2}".kak | head -n 1
}
+ filename=""
if [ -d "${kak_config}/colors" ]; then
filename=$(find_colorscheme "${kak_config}/colors" "${1}")
fi