2019-04-02 20:53:19 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
retries=0
|
|
|
|
until [ $retries -ge 5 ]
|
|
|
|
do
|
|
|
|
echo "Attempting to start VMs. Attempts: $retries"
|
2019-10-17 21:37:31 +08:00
|
|
|
timeout 10m time vagrant up "$@" && break
|
2019-04-02 20:53:19 +08:00
|
|
|
retries=$[$retries+1]
|
|
|
|
sleep 5
|
|
|
|
done
|
|
|
|
|
|
|
|
sleep 10
|