From 65f88c6d6fce152a02de690e922aaea141730d53 Mon Sep 17 00:00:00 2001 From: Urs Schulz Date: Wed, 2 May 2018 15:43:27 +0200 Subject: [PATCH] mkplatformfs.sh: error out without base tarball --- mkplatformfs.sh.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mkplatformfs.sh.in b/mkplatformfs.sh.in index 9692bcd..546b5f5 100644 --- a/mkplatformfs.sh.in +++ b/mkplatformfs.sh.in @@ -143,6 +143,10 @@ ROOTFS=$(mktemp -d) || die "failed to create tempdir, exiting..." # Now that we have a directory for the ROOTFS, we can expand the # existing base filesystem into the directory +if [ ! -e "$BASE_TARBALL" ]; then + die "no valid base tarball given, exiting." +fi + info_msg "Expanding base tarball $BASE_TARBALL into $ROOTFS for $PLATFORM build." tar xf "$BASE_TARBALL" -C "$ROOTFS"