#!/bin/bash set -e if ! docker inspect busybox &> /dev/null; then if [ -d /docker-busybox ]; then ( set -x; docker build -t busybox /docker-busybox ) else ( set -x; docker pull busybox ) fi fi