From 3229a0f2ba9c7b648f84858c019c852a35bb5ee6 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 25 Mar 2017 10:30:53 -0400 Subject: fix defaulting expansion in ASPROOT definition And keep the doc up to date... --- asp.in | 2 +- man/asp.1.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/asp.in b/asp.in index 6471aa1..41b3877 100644 --- a/asp.in +++ b/asp.in @@ -4,7 +4,7 @@ ARCH_GIT_REPOS=(packages community) OPT_ARCH=$(uname -m) OPT_FORCE=0 -: ${ASPROOT:=${XDG_CACHE_HOME:-$HOME/.cache/asp}} +: ${ASPROOT:=${XDG_CACHE_HOME:-$HOME/.cache}/asp} : ${ASPCACHE:=$ASPROOT/cache} m4_include(util.inc.sh) diff --git a/man/asp.1.txt b/man/asp.1.txt index ece47c8..925e287 100644 --- a/man/asp.1.txt +++ b/man/asp.1.txt @@ -108,7 +108,7 @@ Environment ----------- *ASPROOT*:: Determines where the metadata is stored for locally tracked packages. Defaults - to '$HOME/asp'. + to '${XDG_CACHE_HOME:-$HOME/.cache}/asp'. *ASPCACHE*:: Determines where cached data is stored. Defaults to '$ASPROOT/cache'. Data in -- cgit v1.2.3-70-g09d2