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
1 changed files with 1 additions and 1 deletions

View File

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