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$' |