mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
20 lines
379 B
Bash
Executable File
20 lines
379 B
Bash
Executable File
#!/bin/bash
|
|
|
|
|
|
# Wait for Connect to be ready before exiting
|
|
# Time out if we wait for more than 2 minutes, so the process won't run forever.
|
|
let "counter=0"
|
|
|
|
while [ ! -f $BROWSER_PROVIDER_READY_FILE ]; do
|
|
let "counter++"
|
|
|
|
if [ $counter -gt 240 ]; then
|
|
echo
|
|
echo "Timed out after 2 minutes waiting for tunnel ready file"
|
|
exit 5
|
|
fi
|
|
|
|
printf "."
|
|
sleep .5
|
|
done
|