From c3e00c279d87463174db4d77ef98465c30c98d3b Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Fri, 11 Oct 2019 01:45:06 -0400 Subject: [PATCH] Legacy adb shell does not have uname --- scripts/emulator.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/emulator.sh b/scripts/emulator.sh index 077da4daa..af7be4a6a 100755 --- a/scripts/emulator.sh +++ b/scripts/emulator.sh @@ -31,7 +31,7 @@ if [ ! -f /system/build.prop ]; then cd "`dirname "$0"`/.." adb push native/out/x86/busybox scripts/emulator.sh /data/local/tmp emu_arch=`adb shell uname -m` - if [ $emu_arch = "x86_64" ]; then + if [ "$emu_arch" = "x86_64" ]; then adb push native/out/x86/magiskinit64 /data/local/tmp/magiskinit else adb push native/out/x86/magiskinit /data/local/tmp