From 81d53b5518454e479b7a8f2e9be934bee30702af Mon Sep 17 00:00:00 2001 From: Wan Muhammad Azims <4zims95@gmail.com> Date: Mon, 16 May 2022 03:45:20 +0800 Subject: [PATCH] fix: wrong use of variable substitution / typo [revanced/revanced-cli#12](https://github.com/revanced/revanced-cli/issues/12) --- src/main/kotlin/app/revanced/utils/adb/Constants.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/utils/adb/Constants.kt b/src/main/kotlin/app/revanced/utils/adb/Constants.kt index 0710ef89..04b4ff33 100644 --- a/src/main/kotlin/app/revanced/utils/adb/Constants.kt +++ b/src/main/kotlin/app/revanced/utils/adb/Constants.kt @@ -42,7 +42,7 @@ internal object Constants { """ #!/system/bin/sh - stock_path=${'$'}{ pm path $PLACEHOLDER | grep base | sed 's/package://g' } + stock_path=${'$'}( pm path $PLACEHOLDER | grep base | sed 's/package://g' ) umount -l ${'$'}stock_path """.trimIndent() @@ -53,7 +53,7 @@ internal object Constants { while [ "${'$'}(getprop sys.boot_completed | tr -d '\r')" != "1" ]; do sleep 1; done base_path="$PATH_REVANCED_APP" - stock_path=${'$'}{ pm path $PLACEHOLDER | grep base | sed 's/package://g' } + stock_path=${'$'}( pm path $PLACEHOLDER | grep base | sed 's/package://g' ) mount -o bind ${'$'}base_path ${'$'}stock_path """.trimIndent() }