summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2017-03-25 07:56:11 -0400
committerDave Reisner <dreisner@archlinux.org>2017-03-25 08:08:37 -0400
commitf638242d6e81b72f8e0ea11a4f8c3c84099fd5b6 (patch)
tree15e95de9395b4921a8f323a1a34580af48f05210
parent376b26d065e0dcadc5a81a7edf9e260b860cd7c6 (diff)
downloadasp32-f638242d6e81b72f8e0ea11a4f8c3c84099fd5b6.tar.xz
move default ASPROOT to XDG_CACHE_HOME or similar
Others have asked for this in the past, see: https://github.com/falconindy/asp/issues/7#issuecomment-57004965 https://github.com/falconindy/asp/pull/9 asp might get more traction with the prospect of it more widely replacing ABS, and I suspect this will come up again.
-rw-r--r--asp.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/asp.in b/asp.in
index ea1150f..499af2f 100644
--- a/asp.in
+++ b/asp.in
@@ -4,7 +4,7 @@ ARCH_GIT_REPOS=(packages community)
OPT_ARCH=$(uname -m)
OPT_FORCE=0
-: ${ASPROOT:=$HOME/asp}
+: ${ASPROOT:=${XDG_CACHE_HOME:-$HOME/.cache/asp}}
: ${ASPCACHE:=$ASPROOT/cache}
m4_include(util.inc.sh)