xbps-src: allow loading xbp-src.conf from XDG compliant dirs
This commit is contained in:
2
xbps-src
2
xbps-src
@@ -428,6 +428,8 @@ else
|
||||
elif [ -s $XBPS_DISTDIR/etc/conf ]; then
|
||||
# ... otherwise read generic user configuration...
|
||||
readonly XBPS_CONFIG_FILE=$XBPS_DISTDIR/etc/conf
|
||||
elif [ -s ${XDG_CONFIG_HOME:-$HOME/.config}/xbps-src.conf ]; then
|
||||
readonly XBPS_CONFIG_FILE=${XDG_CONFIG_HOME:-$HOME/.config}/xbps-src.conf
|
||||
elif [ -s $HOME/.xbps-src.conf ]; then
|
||||
# ... fallback to ~/.xbps-src.conf otherwise.
|
||||
readonly XBPS_CONFIG_FILE=$HOME/.xbps-src.conf
|
||||
|
||||
Reference in New Issue
Block a user