There was an error while loading. Please reload this page.
1 parent a359932 commit 7c88f94Copy full SHA for 7c88f94
1 file changed
scripts/install_plugin.sh
@@ -18,7 +18,7 @@ validate_command() {
18
# Function to detect the latest version from GitHub API
19
get_latest_version() {
20
local latest_version
21
- 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)"
22
echo "$latest_version"
23
}
24
@@ -31,7 +31,7 @@ install_plugin() {
31
32
# Download the plugin archive
33
if validate_command "curl"; then
34
- curl --fail -sSL "${plugin_url}" -o "${plugin_filename}"
+ curl --connect-timeout 15 --retry 3 --fail -sSL "${plugin_url}" -o "${plugin_filename}"
35
elif validate_command "wget"; then
36
wget -q "${plugin_url}" -O "${plugin_filename}"
37
else
0 commit comments