diff options
author | Richard Mortier <mort@cantab.net> | 2019-05-19 21:25:42 +0100 |
---|---|---|
committer | Richard Mortier <mort@cantab.net> | 2019-05-19 21:25:42 +0100 |
commit | b45a86041bfc2e407ba13c1db80470da7667c8e8 (patch) | |
tree | 00038c88ec15cdee2ecf5c35dfb2337edd77a32f | |
parent | 96a02d1e0cb76b221446118f540546c5a72f0d27 (diff) | |
download | docker-abuild-b45a86041bfc2e407ba13c1db80470da7667c8e8.tar.bz2 docker-abuild-b45a86041bfc2e407ba13c1db80470da7667c8e8.tar.xz |
dabuild: per @tcely, `mkdir -p` then test for success
-rwxr-xr-x | dabuild.in | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |