Browse Source

better error message

dev-ivo
Ivo Oliveira Capanema 2 years ago
parent
commit
4d4b1b6cfa
  1. 2
      reinstall-magisk-on-lineageos

2
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 if [$PHONE_ADB_SERIAL_NUMBER = '']; then
PHONE_ADB_SERIAL_NUMBER=$(echo $(adb devices) | sed -rn 's/(^|(.* ))([^ ]*) device(( .*)|$)/\3/; T; p; q') PHONE_ADB_SERIAL_NUMBER=$(echo $(adb devices) | sed -rn 's/(^|(.* ))([^ ]*) device(( .*)|$)/\3/; T; p; q')
if [[ -z $PHONE_ADB_SERIAL_NUMBER ]]; then 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 exit 1
fi fi
fi fi

Loading…
Cancel
Save