Skip to content

Commit

Permalink
Merge pull request #95 from timodempwolf/master
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanisham authored Sep 4, 2024
2 parents 89c2db0 + 806b341 commit 0cc0720
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
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..."
wget -q --show-progress --max-redirect 5 -O zvm.tar "https://github.com/tristanisham/zvm/releases/latest/download/$1"
Expand Down

0 comments on commit 0cc0720

Please sign in to comment.