From dbf3accbd142989c8b94ad5cfe5fa7307e89fb9a Mon Sep 17 00:00:00 2001 From: mySYSMON <72756883+mySYSMON@users.noreply.github.com> Date: Sat, 16 Jan 2021 15:35:45 -0500 Subject: [PATCH] automatically "fix" packer json file. --- build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index a882422..255cdf5 100755 --- a/build.sh +++ b/build.sh @@ -182,7 +182,8 @@ packer_build_box() { cd "$DL_DIR/Packer" || exit 1 (echo >&2 "Using Packer to build the $BOX Box. This can take 90-180 minutes depending on bandwidth and hardware.") PACKER_LOG=1 PACKER_LOG_PATH="$DL_DIR/Packer/packer_build.log" - $(which packer) build --only="virtualbox-iso" "$BOX".json >&2 + $(which packer) fix "$BOX".json > "$BOX"FIXED.json >&2 + $(which packer) build --only="virtualbox-iso" "$BOX"FIXED.json >&2 echo "$?" }