Commit dca3fe39 authored by osm0sis's avatar osm0sis Committed by John Wu

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
parent 8d87eae1
...@@ -4,7 +4,7 @@ extract_bb() { ...@@ -4,7 +4,7 @@ extract_bb() {
touch "$BBBIN" touch "$BBBIN"
chmod 755 "$BBBIN" chmod 755 "$BBBIN"
dd if="$0" of="$BBBIN" bs=1024 skip=1 count=$X86_CNT 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() { setup_bb() {
export BBDIR=$TMPDIR/bin export BBDIR=$TMPDIR/bin
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment