summaryrefslogtreecommitdiff
path: root/asp.in
diff options
context:
space:
mode:
Diffstat (limited to 'asp.in')
-rw-r--r--asp.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/asp.in b/asp.in
index 94cc420..cb983a4 100644
--- a/asp.in
+++ b/asp.in
@@ -5,6 +5,7 @@ ARCH_GIT_REPOS=(packages community)
OPT_ARCH=$(uname -m)
OPT_FORCE=0
: ${ASPROOT:=$HOME/asp}
+: ${ASPCACHE:=$ASPROOT/cache}
m4_include(util.inc.sh)
m4_include(remote.inc.sh)
@@ -88,6 +89,8 @@ initialize() {
migrate_bare_repo
fi
+ [[ -d $ASPCACHE ]] || mkdir -p "$ASPCACHE"
+
[[ -f .asp ]] && return 0
git init || return 1