Misc: kde_config_dir: If the var exists already, don't run the entire function

This commit is contained in:
Dylan Araps 2016-11-09 23:22:54 +11:00
parent 0f878a24c6
commit 88f7f0af2a
1 changed files with 4 additions and 1 deletions

View File

@ -2888,7 +2888,10 @@ cache() {
# KDE config directory {{{ # KDE config directory {{{
kde_config_dir() { kde_config_dir() {
if [[ -n "$KDE_CONFIG_DIR" ]]; then if [[ "$kde_config_dir" ]]; then
return
elif [[ -n "$KDE_CONFIG_DIR" ]]; then
kde_config_dir="$KDE_CONFIG_DIR" kde_config_dir="$KDE_CONFIG_DIR"
elif type -p kde5-config >/dev/null 2>&1; then elif type -p kde5-config >/dev/null 2>&1; then