From 6114b7f5935e708289ff7e7c181e72b6914648ed Mon Sep 17 00:00:00 2001 From: Timo Dempwolf Date: Fri, 2 Aug 2024 16:12:16 +0200 Subject: [PATCH 1/2] Add option for wget2 --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 1999461..a9e4af8 100644 --- a/install.sh +++ b/install.sh @@ -37,7 +37,11 @@ install_latest() { elif [ $OS = "Linux" ]; then # Do something under GNU/Linux platform - if command -v wget >/dev/null 2>&1; then + if command -v wget2 >/dev/null 2>&1; then + + echo "wget2 is installed. Using wget2..." + wget -q --force-progress --max-redirect 5 -O zvm.tar "https://github.com/tristanisham/zvm/releases/latest/download/$1" + elif command -v wget >/dev/null 2>&1; then echo "wget is installed. Using wget..." wget -q --show-progress --max-redirect 5 -O zvm.tar "https://github.com/tristanisham/zvm/releases/latest/download/$1" From 8f2dac46dbb383e42b7cfb08855c19f0aa198ed0 Mon Sep 17 00:00:00 2001 From: Timo Dempwolf Date: Wed, 4 Sep 2024 13:04:45 +0200 Subject: [PATCH 2/2] Use wget2 instead of symlink on wget --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index a9e4af8..c0e9bcd 100644 --- a/install.sh +++ b/install.sh @@ -40,7 +40,7 @@ install_latest() { if command -v wget2 >/dev/null 2>&1; then echo "wget2 is installed. Using wget2..." - wget -q --force-progress --max-redirect 5 -O zvm.tar "https://github.com/tristanisham/zvm/releases/latest/download/$1" + wget2 -q --force-progress --max-redirect 5 -O zvm.tar "https://github.com/tristanisham/zvm/releases/latest/download/$1" elif command -v wget >/dev/null 2>&1; then echo "wget is installed. Using wget..."