From 3b1d8a8994288bfbc1722e40c51917a7a6e18c1e Mon Sep 17 00:00:00 2001 From: patrick brisbin Date: Thu, 10 Oct 2024 08:48:44 -0400 Subject: [PATCH] Add a little retry to instal fetching latest tag --- install | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install b/install index aba59816..5ee1c902 100755 --- a/install +++ b/install @@ -44,7 +44,12 @@ done shift $((OPTIND - 1)) if [ -z "$tag" ]; then - tag=$(curl -sSf https://api.github.com/repos/restyled-io/restyler/releases | + tag=$(curl \ + --max-time 10 \ + --retry 5 \ + --retry-delay 0 \ + --retry-max-time 30 \ + -sSf https://api.github.com/repos/restyled-io/restyler/releases | grep -o '"tag_name": ".*"' | sed 's/^.*: "//; s/"$//' | grep -v -- '-rc$' |