From 8d6445c632babb79b5da4cfb3c639ee7b3982c32 Mon Sep 17 00:00:00 2001 From: Geoffrey Noel Date: Sat, 13 Jan 2024 18:35:37 -0500 Subject: [PATCH] Assume /home/gnoel/.local/share if XDG_DATA_HOME is not set --- scripts/bootstrap/bootstrap-haskell | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bootstrap/bootstrap-haskell b/scripts/bootstrap/bootstrap-haskell index c0e0163..1d23bfc 100755 --- a/scripts/bootstrap/bootstrap-haskell +++ b/scripts/bootstrap/bootstrap-haskell @@ -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