Skip to content

Commit

Permalink
uses wget instead of curl to check releases
Browse files Browse the repository at this point in the history
  • Loading branch information
crschardt committed Oct 17, 2024
1 parent 92cc950 commit bfb395c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ install_if_missing() {
}

get_photonvision_releases() {
if ! command -v curl > /dev/null 2>&1 ; then
die "./install --list-versions requires curl and it is not installed."
if ! command -v wget > /dev/null 2>&1 ; then
die "./install.sh --list-versions requires wget and it is not installed."
fi

if [ -z "$PHOTON_VISION_RELEASES" ] ; then
PHOTON_VISION_RELEASES="$(curl -sk https://api.github.com/repos/photonvision/photonvision/releases)"
PHOTON_VISION_RELEASES="$(wget -qO- https://api.github.com/repos/photonvision/photonvision/releases)"
fi

echo "$PHOTON_VISION_RELEASES"
Expand Down

0 comments on commit bfb395c

Please sign in to comment.