Skip to content

Commit

Permalink
xbps-src: allow loading xbp-src.conf from XDG compliant dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnnynator committed May 8, 2020
1 parent fc3d2c5 commit f98dd80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xbps-src
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,10 @@ 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/xbps-src.conf ]; then
readonly XBPS_CONFIG_FILE=$XDG_CONFIG_HOME/xbps-src.conf
elif [ -s $HOME/.config/xbps-src.conf ]; then
readonly XBPS_CONFIG_FILE=$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
Expand Down

0 comments on commit f98dd80

Please sign in to comment.