From 7c88f945e19a57ee94cb03839214ff3fc3a30345 Mon Sep 17 00:00:00 2001 From: Yash Raj Date: Sat, 8 Aug 2026 13:01:07 +0530 Subject: [PATCH] feat(scripts): add timeout and retry resilience flags to curl in install_plugin.sh (#718) --- scripts/install_plugin.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install_plugin.sh b/scripts/install_plugin.sh index a721126..b940456 100755 --- a/scripts/install_plugin.sh +++ b/scripts/install_plugin.sh @@ -18,7 +18,7 @@ validate_command() { # Function to detect the latest version from GitHub API get_latest_version() { local latest_version - latest_version="$(curl -s "${api_repo}" | grep -oE '"name": "v[^"]+' | cut -d 'v' -f 2)" + latest_version="$(curl --connect-timeout 15 --retry 3 -s "${api_repo}" | grep -oE '"name": "v[^"]+' | cut -d 'v' -f 2)" echo "$latest_version" } @@ -31,7 +31,7 @@ install_plugin() { # Download the plugin archive if validate_command "curl"; then - curl --fail -sSL "${plugin_url}" -o "${plugin_filename}" + curl --connect-timeout 15 --retry 3 --fail -sSL "${plugin_url}" -o "${plugin_filename}" elif validate_command "wget"; then wget -q "${plugin_url}" -O "${plugin_filename}" else