Misc: kde_config_dir: If the var exists already, don't run the entire function
This commit is contained in:
parent
0f878a24c6
commit
88f7f0af2a
1 changed files with 4 additions and 1 deletions
5
neofetch
5
neofetch
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue