From f9fe4e9c3d03a91d1ace85439cfd3634887140ef Mon Sep 17 00:00:00 2001 From: Jakub Date: Thu, 6 Oct 2022 17:05:04 +0200 Subject: [PATCH] Other: improve gobinsec cachce. --- utils/gobinsec_update.sh | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) 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