From df2a7128ef27d12238a8faca435dee49c83ab171 Mon Sep 17 00:00:00 2001 From: Marius Tolzmann Date: Thu, 21 Jul 2011 11:41:07 +0200 Subject: [PATCH] config-lib: use beeuniq to remove dupes from pathes --- src/beelib.config.sh.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/beelib.config.sh.in b/src/beelib.config.sh.in index 7db42c3..bca4fcb 100644 --- a/src/beelib.config.sh.in +++ b/src/beelib.config.sh.in @@ -45,6 +45,10 @@ function config_init_base_config() { # append bee installed defaults to config search path : ${BEE_CONFIG_DIR:=${BEE_DEFCONFDIR}} XDG_CONFIG_DIRS=${XDG_CONFIG_DIRS}:${BEE_CONFIG_DIR} + + # remove dupes from pathes + XDG_CONFIG_DIRS=$(beeuniq -d : ${XDG_CONFIG_DIRS//:/ }) + XDG_DATA_DIRS=$(beeuniq -d : ${XDG_DATA_DIRS//:/ }) } function config_handle_deprecated_config() {