From b789b9aef8791e3046aa098fff753214d921bc56 Mon Sep 17 00:00:00 2001 From: Ivo Capanema Date: Wed, 9 Nov 2022 20:36:00 -0300 Subject: [PATCH] standardized messages --- reinstall-magisk-on-lineageos | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/reinstall-magisk-on-lineageos b/reinstall-magisk-on-lineageos index a75f703..dd184ac 100755 --- a/reinstall-magisk-on-lineageos +++ b/reinstall-magisk-on-lineageos @@ -158,15 +158,14 @@ check_magisk_app() { magisk_package_name_count=$(adb -s "$PHONE_ADB_SERIAL_NUMBER" shell pm list packages "$magisk_package_name" | wc -l) if [ "${magisk_package_name_count}" -eq 1 ] then - print_message " [OK] Magisk app seems to be installed on selected phone" + print_message "Magisk app seems to be installed on selected phone" elif [ "${magisk_package_name_count}" -eq 0 ] then - print_message " [ERROR] Magisk app seems not installed on selected phone. Exiting." + print_message "ERROR: Magisk app seems not installed on selected phone." exit -1 else - print_message " [ERROR] More than one Magisk app entry is present:" + print_message "ERROR: More than one Magisk app entry is present:" adb -s "$PHONE_ADB_SERIAL_NUMBER" shell pm list packages "$magisk_package_name" - print_message "Exiting." exit -1 fi }