diff --git a/utils/gobinsec_update.sh b/utils/gobinsec_update.sh index 09d21a17..e0e5436f 100755 --- a/utils/gobinsec_update.sh +++ b/utils/gobinsec_update.sh @@ -17,8 +17,16 @@ # You should have received a copy of the GNU General Public License # along with Proton Mail Bridge. If not, see . -cd $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/gobinsec_update -make run || FAILED=true -if [ $FAILED ]; then - make run -fi \ No newline at end of file +cd "$(\ + cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd \ + )"/gobinsec_update || exit 1 + +for i in $(seq 10); do + echo "Trying $i" + if make run; then + echo "Try $i succeeded" + break + fi + echo "Waiting to try again..." + sleep 30 +done