Added check for DONT_WAIT_FOR_STATE
This commit is contained in:
parent
2c2259f6a8
commit
f79fe329d9
@ -43,6 +43,8 @@ filesize() {
|
||||
|
||||
#------------------------------------------------------------
|
||||
wait_for_fastboot() {
|
||||
if [[ -v DONT_WAIT_FOR_STATE ]]; then return 0; fi
|
||||
|
||||
echo -n "waiting for fastboot...";
|
||||
export FLASH_WAITING_FOR_DEVICE=1
|
||||
for ((i=$TIMEOUT; i>0; i--)) {
|
||||
@ -62,6 +64,8 @@ wait_for_fastboot() {
|
||||
|
||||
#------------------------------------------------------------
|
||||
wait_for_fel() {
|
||||
if [[ -v DONT_WAIT_FOR_STATE ]]; then return 0; fi
|
||||
|
||||
echo -n "waiting for fel...";
|
||||
export FLASH_WAITING_FOR_DEVICE=1
|
||||
for ((i=$TIMEOUT; i>0; i--)) {
|
||||
|
Loading…
Reference in New Issue
Block a user