release-deb: create "dists" directory if missing

The script failed if an empty volume is used
to generate the repo. This adds the directory
if missing.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 94ac03cdf549567c01f191a066d8435731f41e06
Component: engine
This commit is contained in:
Sebastiaan van Stijn
2016-06-09 15:22:49 +02:00
parent 0cfb313091
commit 6ca123dd75

View File

@ -22,7 +22,7 @@ source "$(dirname "$BASH_SOURCE")/.detect-daemon-osarch"
APTDIR=$DOCKER_RELEASE_DIR/apt/repo
# setup the apt repo (if it does not exist)
mkdir -p "$APTDIR/conf" "$APTDIR/db"
mkdir -p "$APTDIR/conf" "$APTDIR/db" "$APTDIR/dists"
# supported arches/sections
arches=( amd64 i386 )