build.sh: Don't try to build base image if it already exists

This commit is contained in:
Alexey Rogachevskiy
2020-07-20 21:55:01 +03:00
parent 34fc51389f
commit 4417ac6651

View File

@@ -1,5 +1,7 @@
#!/bin/bash
set -e
# FIXME: Use system Packer if possible
#PACKER=$(which packer)
@@ -14,9 +16,10 @@ fi
echo "--- Using Packer version $(${PACKER} --version)"
echo "--- Building base image"
${PACKER} build -only=virtualbox-iso base_vm.json
if [ ! -f output-virtualbox-iso/clever-devel.ova ]; then
echo "--- Building base image"
${PACKER} build -only=virtualbox-iso base_vm.json
fi
echo "--- Building extended image"