Fix build-with-cabal.sh when XDG_CONFIG_HOME is defined

This commit is contained in:
Gabriel Simões 2024-02-11 21:20:30 -05:00 committed by GitHub
parent 7843d4dd28
commit e6dae98c44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,7 +15,7 @@ output="$1"
if [ "$SRC_DIR" = "" ]; then
# look for the config directory, fall back to the old one
SRC_DIR="${XMONAD_CONFIG_DIR:-${XDG_CONFIG_HOME:-$HOME/.config/xmonad}}"
SRC_DIR="${XMONAD_CONFIG_DIR:-${XDG_CONFIG_HOME:-$HOME/.config}/xmonad}"
if test -f "$SRC_DIR/build"; then
:
else