#!/bin/bash [[ $1 = "-f" ]] && force=force && shift if [[ ! $(udbuild image exists -e test.env) || $force ]] ; then echo $force building image ../build -e test.env -a build.env $@ echo done building image else echo using existing image, use -f to force rebuild fi