Skip to content

Commit

Permalink
feat: handle unmounting deleted files (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
decipher3114 authored and oSumAtrIX committed Oct 11, 2022
1 parent 9510e0c commit 0c5cdb2
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 @@ -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"
Expand Down

0 comments on commit 0c5cdb2

Please sign in to comment.