Assume /home/gnoel/.local/share if XDG_DATA_HOME is not set

This commit is contained in:
Geoffrey Noel 2024-01-13 18:35:37 -05:00
parent de611e0d4e
commit 8d6445c632

View File

@ -742,7 +742,7 @@ find_stack_root() {
if [ -n "${STACK_ROOT}" ] ; then if [ -n "${STACK_ROOT}" ] ; then
echo "${STACK_ROOT}" echo "${STACK_ROOT}"
elif [ -n "${STACK_XDG}" ] ; then elif [ -n "${STACK_XDG}" ] ; then
echo "${XDG_DATA_HOME}/stack" echo "${XDG_DATA_HOME:-$HOME/.local/share}/stack"
else else
echo "${HOME}/.stack" echo "${HOME}/.stack"
fi fi