feat(mkrootfs): clean up files when completed

Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
This commit is contained in:
Coelacanthus 2022-07-27 22:27:15 +08:00
parent 8855d84c83
commit 8446758c6c
No known key found for this signature in database
GPG key ID: E35C89E45867AE35

View file

@ -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