Skip to content

Commit

Permalink
config-lib: use beeuniq to remove dupes from pathes
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Jul 21, 2011
1 parent de46919 commit df2a712
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/beelib.config.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit df2a712

Please sign in to comment.