From 2b4e21e293fcc0ae72a0cb8d91dcb0b858b53465 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 10 Oct 2016 13:17:15 +0200 Subject: [PATCH] Check proper config file location --- update-mirrors | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-mirrors b/update-mirrors index a17b19e..2723066 100755 --- a/update-mirrors +++ b/update-mirrors @@ -46,7 +46,7 @@ etcbases=${XDG_CONFIG_DIRS:-"/etc/xdg"} cfgbase=${XDG_CONFIG_HOME:-"${HOME}/.config"} cfgfile="/update-mirrors/config.sh" -if [[ -x $cfgfile ]]; then +if [[ -x "${cfgbase}${cfgfile}" ]]; then source "${cfgbase}${cfgfile}" else load-global-config $etcbases $cfgfile