Detect whether debian-here image exists and build if necessary
This commit is contained in:
parent
599b04af38
commit
abd0f6f29b
@ -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")"
|
||||
|
Loading…
Reference in New Issue
Block a user