summaryrefslogtreecommitdiff
path: root/asp.in
diff options
context:
space:
mode:
Diffstat (limited to 'asp.in')
-rw-r--r--asp.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/asp.in b/asp.in
index 5bb9c90..2f18e58 100644
--- a/asp.in
+++ b/asp.in
@@ -128,9 +128,11 @@ initialize() {
mkdir -p "$ASPROOT"
fi
- cd "$ASPROOT" || log_fatal "ASPROOT ($ASPROOT) does not exist!"
+ cd "$ASPROOT" || log_fatal "ASPROOT (%s) does not exist!" "$ASPROOT"
- [[ -d $ASPCACHE ]] || mkdir -p "$ASPCACHE"
+ if [[ ! -d $ASPCACHE ]] && ! mkdir -p "$ASPCACHE"; then
+ log_fatal 'failed to create ASPCACHE (%s)' "$ASPCACHE"
+ fi
[[ -f .asp ]] && return 0