Fix to how utility commands pass device paths
This commit is contained in:
parent
2681924d67
commit
98b2419f0b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user