1
0
Fork 0

Check proper config file location

This commit is contained in:
Tom Willemse 2016-10-10 13:17:15 +02:00
parent 485057f42d
commit 2b4e21e293

View file

@ -46,7 +46,7 @@ etcbases=${XDG_CONFIG_DIRS:-"/etc/xdg"}
cfgbase=${XDG_CONFIG_HOME:-"${HOME}/.config"} cfgbase=${XDG_CONFIG_HOME:-"${HOME}/.config"}
cfgfile="/update-mirrors/config.sh" cfgfile="/update-mirrors/config.sh"
if [[ -x $cfgfile ]]; then if [[ -x "${cfgbase}${cfgfile}" ]]; then
source "${cfgbase}${cfgfile}" source "${cfgbase}${cfgfile}"
else else
load-global-config $etcbases $cfgfile load-global-config $etcbases $cfgfile