From f3f80014cc4f053a8ed7230136bee83cd42644d1 Mon Sep 17 00:00:00 2001 From: osm0sis Date: Sun, 4 Aug 2019 01:16:54 -0300 Subject: [PATCH] AK3+Backend: fix multi-line abort outputs --- META-INF/com/google/android/update-binary | 2 +- tools/ak3-core.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index 8758ade..4d7a38e 100755 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -53,7 +53,7 @@ unmount_all() { $bb umount /data) 2>/dev/null; } abort() { - ui_print "$*"; + ui_print "$@"; debugging; if [ ! -f anykernel.sh -o "$(file_getprop anykernel.sh do.cleanuponabort 2>/dev/null)" == 1 ]; then cleanup; diff --git a/tools/ak3-core.sh b/tools/ak3-core.sh index e1ce1f7..97b0e2e 100755 --- a/tools/ak3-core.sh +++ b/tools/ak3-core.sh @@ -22,7 +22,7 @@ ui_print() { # abort ["" [...]] abort() { - ui_print " " "$*"; + ui_print " " "$@"; exit 1; }