From cfa51b983e86d281ee65afd10391d143f6f6c157 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Thu, 17 Mar 2016 14:45:30 +0100 Subject: [PATCH] [script][flash_all] Fix bash redirection --- scripts/flash_all | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/flash_all b/scripts/flash_all index a6b8754..13b8eec 100755 --- a/scripts/flash_all +++ b/scripts/flash_all @@ -49,19 +49,19 @@ function check_fastboot_serial { function reboot_and_wait_for_device { check_forbidden_serial $1 adb -s $1 reboot bootloader; - fastboot devices | grep $1 >/dev/null 2>1 + fastboot devices | grep $1 >/dev/null 2>&1 while [ $? == 1 ]; do sleep 1; echo "Waiting for $1 in fastboot mode..." - fastboot devices | grep $1 >/dev/null 2>1 + fastboot devices | grep $1 >/dev/null 2>&1 done } function check_presence { if $haveSerial ; then - fastboot devices | grep $serial >/dev/null 2>1 + fastboot devices | grep $serial >/dev/null 2>&1 if [[ $? == 1 ]] ; then - adb devices | grep $serial >/dev/null 2>1 + adb devices | grep $serial >/dev/null 2>&1 if [[ $? == 0 ]] ; then reboot_and_wait_for_device $serial else