diff --git a/scripts/post-fs-data.sh b/scripts/post-fs-data.sh index 506c0edd5..6607569ad 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