From 5ab69f335fabe9284512e66b490665998e4b33c4 Mon Sep 17 00:00:00 2001 From: Ivo Capanema Date: Wed, 9 Nov 2022 20:43:00 -0300 Subject: [PATCH] changed print_messagem position --- reinstall-magisk-on-lineageos | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reinstall-magisk-on-lineageos b/reinstall-magisk-on-lineageos index a8909e4..d3da336 100755 --- a/reinstall-magisk-on-lineageos +++ b/reinstall-magisk-on-lineageos @@ -2,6 +2,10 @@ set -e +print_message() { + printf "$1\n" +} + PHONE_ADB_SERIAL_NUMBER=${ADB_DEVICE} # The adb serial number can be found by running `adb devices`. if [$PHONE_ADB_SERIAL_NUMBER = '']; then PHONE_ADB_SERIAL_NUMBER=$(echo $(adb devices) | sed -rn 's/(^|(.* ))([^ ]*) device(( .*)|$)/\3/; T; p; q') @@ -11,10 +15,6 @@ if [$PHONE_ADB_SERIAL_NUMBER = '']; then fi fi -print_message() { - printf "$1\n" -} - check_phone_is_connected() { if ! adb devices | grep --silent "$PHONE_ADB_SERIAL_NUMBER"; then print_message "ERROR: phone '$PHONE_ADB_SERIAL_NUMBER' is not connected"