aps: Rename IMAGEDIR envvar to IMAGESDIR

This commit is contained in:
Daniel Gröber 2018-09-02 21:28:01 +02:00
parent fb97956d6c
commit d27be12db3

View file

@ -7,14 +7,14 @@ IMAGEBUILDER_URL=${IMAGEBUILDER_URL:-http://downloads.lede-project.org/snapshots
TOPDIR="$PWD" TOPDIR="$PWD"
DLDIR=${DLDIR:-"dl"} DLDIR=${DLDIR:-"dl"}
BUILDDIR=${BUILDDIR:-"build"} BUILDDIR=${BUILDDIR:-"build"}
IMAGEDIR=${IMAGEDIR:-"images"} IMAGESDIR=${IMAGEDIR:-"images"}
mkdir -p "$DLDIR" mkdir -p "$DLDIR"
mkdir -p "$BUILDDIR"; rm -rf "$BUILDDIR"/* mkdir -p "$BUILDDIR"; rm -rf "$BUILDDIR"/*
mkdir -p "$IMAGEDIR" mkdir -p "$IMAGESDIR"
VERSION="$(basename "$(git describe --always --tags --dirty --match 'access-points/*')")" VERSION="$(basename "$(git describe --always --tags --dirty --match 'access-points/*')")"
IMAGEDIR="$IMAGEDIR"/"$VERSION" IMAGEDIR="$IMAGESDIR"/"$VERSION"
mkdir -p "$IMAGEDIR" mkdir -p "$IMAGEDIR"
imagebuilder="$(basename "$IMAGEBUILDER_URL")" imagebuilder="$(basename "$IMAGEBUILDER_URL")"