소스 검색

mkplatformfs.sh: error out without base tarball

Urs Schulz 7 년 전
부모
커밋
65f88c6d6f
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      mkplatformfs.sh.in

+ 4 - 0
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"