smourph
5/13/2016 - 2:17 PM

Loop "vagrant provision" until done

Loop "vagrant provision" until done

#!/bin/bash

echo "#### Start to loop ####"

while : ; do
    vagrant provision
    return=$?
    trap "exit" SIGHUP SIGINT SIGTERM
    [[ $return -ne 0 ]] || break
done

echo "#### End of loop : VM fully provisionned ####"