Skip to content

Commit

Permalink
feat: handle unmounting deleted files (ReVanced#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
decipher3114 committed Oct 5, 2022
1 parent 4f4e1f9 commit 3a733e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/app/revanced/utils/adb/Constants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,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"
Expand Down

0 comments on commit 3a733e5

Please sign in to comment.