From 0c5cdb2a40edadec90a11ea594b34c389e61ce05 Mon Sep 17 00:00:00 2001 From: decipher <84389932+decipher3114@users.noreply.github.com> Date: Wed, 5 Oct 2022 18:17:23 +0530 Subject: [PATCH] feat: handle unmounting deleted files (#148) --- src/main/kotlin/app/revanced/utils/adb/Constants.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/utils/adb/Constants.kt b/src/main/kotlin/app/revanced/utils/adb/Constants.kt index 6e2996d6..1b05a1ee 100644 --- a/src/main/kotlin/app/revanced/utils/adb/Constants.kt +++ b/src/main/kotlin/app/revanced/utils/adb/Constants.kt @@ -38,7 +38,7 @@ internal object Constants { // unmount command internal const val COMMAND_UMOUNT = - "grep $PLACEHOLDER /proc/mounts | while read -r line; do echo ${'$'}line | cut -d " " -f 2 | xargs -r umount -l; done" + "grep $PLACEHOLDER /proc/mounts | while read -r line; do echo ${'$'}line | cut -d " " -f 2 | sed 's/apk.*/apk/' | xargs -r umount -l; done" // install mount script & set permissions internal const val COMMAND_INSTALL_MOUNT = "mv $PATH_INIT_PUSH $PATH_MOUNT && $COMMAND_CHMOD_MOUNT $PATH_MOUNT"