From 98b2419f0b6b901995467a82df47b132b8a6edd9 Mon Sep 17 00:00:00 2001 From: Wynter Woods Date: Thu, 3 Dec 2015 20:07:01 -0800 Subject: [PATCH] Fix to how utility commands pass device paths --- common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common.sh b/common.sh index 183c05a..b619f54 100755 --- a/common.sh +++ b/common.sh @@ -25,7 +25,7 @@ filesize() { wait_for_fastboot() { echo -n "waiting for fastboot..."; for ((i=$TIMEOUT; i>0; i--)) { - if [[ ! -z "$(fastboot -i 0x1f3a $1 devices)" ]]; then + if [[ ! -z "$(fastboot -i 0x1f3a $@ devices)" ]]; then echo "OK"; return 0; fi @@ -41,7 +41,7 @@ wait_for_fastboot() { wait_for_fel() { echo -n "waiting for fel..."; for ((i=$TIMEOUT; i>0; i--)) { - if ${FEL} $1 ver 2>/dev/null >/dev/null; then + if ${FEL} $@ ver 2>/dev/null >/dev/null; then echo "OK" return 0; fi