bootstrap-haskell: XDG: set proper GHCUP_DIR & create it
All threads resolved!
All threads resolved!
Compare changes
Files
2+ 4
− 0
Fixes XDG install mode.
Without XDG - GHCUP_BIN
was creating ~/.ghcup/bin
recursively before GHCUP_DIR
~/.ghcup
was used.
XDG setting exposed that case, because now GHCUP_BIN
does not include GHCUP_DIR
.
Makes sure that the directory exists before putting a file into it.