Detect whether debian-here image exists and build if necessary

This commit is contained in:
Kristóf Tóth 2018-06-12 13:58:11 +02:00
parent 599b04af38
commit abd0f6f29b
1 changed files with 1 additions and 2 deletions

View File

@ -16,11 +16,10 @@ IMAGE="${IMAGE:-debian-here}"
run() {
if [[ ! -z "${BUILD:-}" ]];then
if [[ "$(docker images -q ${IMAGE} 2> /dev/null)" == "" ]];then
pushd "$script_dir"
docker build -t "$IMAGE" .
popd
exit
fi
mount_point="/mnt/$(basename "$here")"