Fix to how utility commands pass device paths

This commit is contained in:
Wynter Woods 2015-12-03 20:07:01 -08:00
parent 2681924d67
commit 98b2419f0b

View File

@ -25,7 +25,7 @@ filesize() {
wait_for_fastboot() { wait_for_fastboot() {
echo -n "waiting for fastboot..."; echo -n "waiting for fastboot...";
for ((i=$TIMEOUT; i>0; i--)) { for ((i=$TIMEOUT; i>0; i--)) {
if [[ ! -z "$(fastboot -i 0x1f3a $1 devices)" ]]; then if [[ ! -z "$(fastboot -i 0x1f3a $@ devices)" ]]; then
echo "OK"; echo "OK";
return 0; return 0;
fi fi
@ -41,7 +41,7 @@ wait_for_fastboot() {
wait_for_fel() { wait_for_fel() {
echo -n "waiting for fel..."; echo -n "waiting for fel...";
for ((i=$TIMEOUT; i>0; i--)) { 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" echo "OK"
return 0; return 0;
fi fi