aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-10-10 13:17:15 +0200
committerGravatar Tom Willemse2016-10-10 13:17:15 +0200
commit2b4e21e293fcc0ae72a0cb8d91dcb0b858b53465 (patch)
treee43cdfb7a882c6fa47afcace90762805690983ce
parent485057f42d060637d1ea3e0e2b76eedbbac2ae06 (diff)
downloadupdate-mirrors-2b4e21e293fcc0ae72a0cb8d91dcb0b858b53465.tar.gz
update-mirrors-2b4e21e293fcc0ae72a0cb8d91dcb0b858b53465.zip
Check proper config file location
-rwxr-xr-xupdate-mirrors2
1 files changed, 1 insertions, 1 deletions
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