From bfb395ca35f14e5e7b260159473b49a2bacc529c Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Wed, 16 Oct 2024 22:00:04 -0500 Subject: [PATCH] uses wget instead of curl to check releases --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 0269eb4..7f1b8b4 100755 --- a/install.sh +++ b/install.sh @@ -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"