If $XDG_CONFIG_HOME is not defined, default to $HOME/.config
(used /etc/profile.d/bash_completion.sh as the example of this usage):
⟫ git diff
diff --git a/pianobar-notify.sh b/pianobar-notify.sh
index fb0dd6d..c7db572 100755
--- a/pianobar-notify.sh
+++ b/pianobar-notify.sh
@@ -28,7 +28,7 @@
# pianobar config file.
#
# Also check if this matches you config folder
-fold="$XDG_CONFIG_HOME/pianobar"
+fold="${XDG_CONFIG_HOME:-$HOME/.config}/pianobar"
# You should also place the control-pianobar.sh script in the
# config folder (or modify the following variable accordingly).
If $XDG_CONFIG_HOME is not defined, default to $HOME/.config
(used /etc/profile.d/bash_completion.sh as the example of this usage):