From 5a2511bd82cb177f78eb859cf82add859e05f351 Mon Sep 17 00:00:00 2001 From: mySYSMON <72756883+mySYSMON@users.noreply.github.com> Date: Sat, 16 Jan 2021 21:52:31 -0500 Subject: [PATCH 1/2] Add check for bsdtar --- build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.sh b/build.sh index a882422..95044c2 100755 --- a/build.sh +++ b/build.sh @@ -156,6 +156,14 @@ check_curl() { fi } +check_bsdtar() { + # Check to see if bsdtar is in PATH + if ! which bsdtar >/dev/null; then + (echo >&2 "Please install bsdtar and make sure it is in your PATH --> sudo apt-get install libarchive-tools") + exit 1 + fi +} + prereq_checks() { # If it's not a Vagrant-only build, then run Packer-related checks if [ "$VAGRANT_ONLY" -eq 0 ]; then From 30249fdcfcfbc06fb74f1e544d71fcd4d0b4e0d3 Mon Sep 17 00:00:00 2001 From: mySYSMON <72756883+mySYSMON@users.noreply.github.com> Date: Tue, 19 Jan 2021 10:33:55 -0500 Subject: [PATCH 2/2] add call to check_bsdtar --- build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sh b/build.sh index 95044c2..e6e436c 100755 --- a/build.sh +++ b/build.sh @@ -180,6 +180,7 @@ prereq_checks() { check_boxes_built check_disk_free_space check_curl + check_bsdtar } # Builds a box using Packer