HOTFIX: actually LOAD the config file
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
Bollux was trying to load the config from $XDG_CONFIG_DIR, which /isn't/ anything, so far as XDG is concerned. It's been fixed to XDG_CONFIG_HOME -- and I've added a DEBUG variable to make debugging stuff /even easier/ later.
This commit is contained in:
parent
972d79a5c1
commit
c62c43499f
|
@ -120,10 +120,11 @@ bollux_args() {
|
|||
|
||||
# process config file and set variables
|
||||
bollux_config() {
|
||||
: "${BOLLUX_CONFIG:=${XDG_CONFIG_DIR:-$HOME/.config}/bollux/bollux.conf}"
|
||||
: "${BOLLUX_CONFIG:=${XDG_CONFIG_HOME:-$HOME/.config}/bollux/bollux.conf}"
|
||||
|
||||
if [ -f "$BOLLUX_CONFIG" ]; then
|
||||
# shellcheck disable=1090
|
||||
log debug "Loading config file '$BOLLUX_CONFIG'"
|
||||
. "$BOLLUX_CONFIG"
|
||||
else
|
||||
log debug "Can't load config file '$BOLLUX_CONFIG'."
|
||||
|
@ -1121,5 +1122,6 @@ history_forward() {
|
|||
}
|
||||
|
||||
if [[ "${BASH_SOURCE[0]}" == "$0" ]]; then
|
||||
${DEBUG:-false} && set -x
|
||||
run bollux "$@"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue