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