diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-06-01 11:04:13 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-06-01 11:04:13 +0200 |
commit | ad9fd71b36593a7d168c5917eb59bbbf2c4231b9 (patch) | |
tree | 4a6f66971030bc33814da489812ee4abcbff6fa4 | |
parent | c09b71a309e2aa26a8ef56c7f64eb31d24ed7c34 (diff) |
pkg: Set default value for XDG_CONFIG_HOME
-rwxr-xr-x | bin/pkg | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -70,8 +70,9 @@ function clear_line { } # Read local configuration -if [[ -r ${XDG_CONFIG_HOME-$HOME/.config/pkg/pkg.conf} ]] { - source ${XDG_CONFIG_HOME-$HOME/.config/pkg/pkg.conf} +: ${XDG_CONFIG_HOME=$HOME/.config} +if [[ -r $XDG_CONFIG_HOME/pkg/pkg.conf ]] { + source $XDG_CONFIG_HOME/pkg/pkg.conf } elif [[ -r $HOME/.pkg.conf ]] { source $HOME/.pkg.conf } |