mirror of
https://github.com/CopterExpress/clover_vm.git
synced 2026-05-26 07:07:58 +00:00
build.sh: Don't try to build base image if it already exists
This commit is contained in:
9
build.sh
9
build.sh
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user