Commit b45a8604 authored by Richard Mortier's avatar Richard Mortier
Browse files

dabuild: per @tcely, `mkdir -p` then test for success

parent 96a02d1e
......@@ -43,11 +43,11 @@ fi
## check $DABUILD_PACKAGES is a writable directory
ABUILD_PACKAGES=${DABUILD_PACKAGES:-${PWD%/aports*}/packages/${ABUILD_VERSION}}
mkdir -p $ABUILD_PACKAGES
if [ ! \( -d "$ABUILD_PACKAGES" -a -w "$ABUILD_PACKAGES" \) ]; then
mkdir -p $ABUILD_PACKAGES \
|| die "Error: invalid packages directory specified!" \
"ABUILD_PACKAGES = '$ABUILD_PACKAGES'" \
"DABUILD_PACKAGES = '$DABUILD_PACKAGES'"
die "Error: invalid or unwritable packages directory specified!" \
"ABUILD_PACKAGES = '$ABUILD_PACKAGES'" \
"DABUILD_PACKAGES = '$DABUILD_PACKAGES'"
fi
## setup volumes; use named volumes as cache if desired
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment