From 8446758c6ccca470e27b235259538ee76bc10bf3 Mon Sep 17 00:00:00 2001 From: Coelacanthus Date: Wed, 27 Jul 2022 22:27:15 +0800 Subject: [PATCH] feat(mkrootfs): clean up files when completed Signed-off-by: Coelacanthus --- mkrootfs.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mkrootfs.sh b/mkrootfs.sh index d3f34b0..27c0016 100755 --- a/mkrootfs.sh +++ b/mkrootfs.sh @@ -26,3 +26,6 @@ sudo usermod --root (realpath ./rootfs) --password $(perl -e "print crypt('archr msg "Compressing rootfs..." sudo bsdtar --create --zstd --verbose --xattrs --acls -f "archriscv-$(date --rfc-3339=date).tar.zst" -C rootfs/ . + +msg "Clean up rootfs directory..." +rm -rf ./rootfs