From dca3fe396f4db5f8a4a3bcbfa50841c957802084 Mon Sep 17 00:00:00 2001 From: osm0sis Date: Fri, 9 Aug 2019 13:44:45 -0300 Subject: [PATCH] scripts: hide expected x86 busybox error on arm - Magisk Manager installs have busybox in the $PATH before extracting busybox from update-binary so an error from busybox ash (as sh) attempting to parse the x86 busybox like a shell script would be shown: ./bin/busybox: line 1: syntax error: unexpected "(" - this will only occur when ash tries to run a binary it can't handle, so basically only with x86 binary on an arm* device --- scripts/update_binary.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update_binary.sh b/scripts/update_binary.sh index 26bc8b12e..687235150 100644 --- a/scripts/update_binary.sh +++ b/scripts/update_binary.sh @@ -4,7 +4,7 @@ extract_bb() { touch "$BBBIN" chmod 755 "$BBBIN" dd if="$0" of="$BBBIN" bs=1024 skip=1 count=$X86_CNT - "$BBBIN" >/dev/null || dd if="$0" of="$BBBIN" bs=1024 skip=$(($X86_CNT + 1)) + "$BBBIN" >/dev/null 2>&1 || dd if="$0" of="$BBBIN" bs=1024 skip=$(($X86_CNT + 1)) } setup_bb() { export BBDIR=$TMPDIR/bin