From c31c9941bd7ce5a68df42c38657893f40e4d491d Mon Sep 17 00:00:00 2001
From: Howard Wu <HowardWu20@outlook.com>
Date: Sun, 3 Mar 2024 03:28:52 +0800
Subject: [PATCH] Cleanup mount point

---
 scripts/post-fs-data.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/post-fs-data.sh b/scripts/post-fs-data.sh
index 506c0ed..6607569 100644
--- a/scripts/post-fs-data.sh
+++ b/scripts/post-fs-data.sh
@@ -38,5 +38,7 @@ for file in "$MAGISKTMP"/*; do
     if echo "$file" | grep -Eq "lsp_.+\.img"; then
         foldername=$(basename "$file" .img)
         umount "$MAGISKTMP/$foldername"
+        rm -rf "${MAGISKTMP:?}/${foldername:?}"
+        rm -f "$file"
     fi
 done