Skip to content

Commit

Permalink
Merge pull request #98 from algorandfoundation/fix/install-sh-wget-al…
Browse files Browse the repository at this point in the history
…ternative

chore: install.sh to test for curl, otherwise use wget
  • Loading branch information
PhearZero authored Jan 15, 2025
2 parents 4e76b2a + 196a15f commit e27e9d6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,12 @@ target="nodekit-$platform"
url="$release/$target"

echo -e "${Opaque}Downloading:${Reset}${Bold_White} $target ${Reset}from $url"
curl --fail --location --progress-bar --output nodekit "$url" ||
error "Failed to download ${target} from ${release} ${url}"
errormessage="Failed to download ${target} from ${release} ${url}"
if curl --version > /dev/null 2>&1; then
curl --fail --location --progress-bar --output nodekit "$url" || error "$errormessage"
else
wget -qO nodekit --show-progress "$url" || error "$errormessage"
fi

chmod +x nodekit

Expand Down

0 comments on commit e27e9d6

Please sign in to comment.