From 4d4b1b6cfaaf6c67e0aa624dc8bb70ec3b5e0c8c Mon Sep 17 00:00:00 2001 From: Ivo Capanema Date: Wed, 9 Nov 2022 23:41:47 -0300 Subject: [PATCH] better error message --- reinstall-magisk-on-lineageos | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reinstall-magisk-on-lineageos b/reinstall-magisk-on-lineageos index 48e4e21..ee3104a 100755 --- a/reinstall-magisk-on-lineageos +++ b/reinstall-magisk-on-lineageos @@ -10,7 +10,7 @@ PHONE_ADB_SERIAL_NUMBER=${ADB_DEVICE} # The adb serial number can be found by ru if [$PHONE_ADB_SERIAL_NUMBER = '']; then PHONE_ADB_SERIAL_NUMBER=$(echo $(adb devices) | sed -rn 's/(^|(.* ))([^ ]*) device(( .*)|$)/\3/; T; p; q') if [[ -z $PHONE_ADB_SERIAL_NUMBER ]]; then - print_message "ERROR: no suitable phone connected" + print_message "ERROR: no phone connected or connection unauthorized" exit 1 fi fi