From aca0eb8c752f79e490c81e1a87b2fc7c2116684d Mon Sep 17 00:00:00 2001 From: Mahdi Hasnat Siyam <44502454+mahdihasnat@users.noreply.github.com> Date: Sat, 21 Sep 2024 18:22:24 +0600 Subject: [PATCH] Use wget instead of curl in several installers (#14) --- scripts/azuredatastudio.sh | 2 +- scripts/insomnia.sh | 4 +--- scripts/minikube.sh | 2 +- scripts/rider.sh | 5 ++--- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/scripts/azuredatastudio.sh b/scripts/azuredatastudio.sh index 0dbbd0b..ea22a7c 100755 --- a/scripts/azuredatastudio.sh +++ b/scripts/azuredatastudio.sh @@ -5,7 +5,7 @@ echo "\nInstalling Azure Data Studio ...\n" apt-get -o DPkg::Lock::Timeout=-1 -y install libunwind8 -curl -L -o azuredatastudio.deb https://azuredatastudio-update.azurewebsites.net/latest/linux-deb-x64/stable +wget -O azuredatastudio.deb https://azuredatastudio-update.azurewebsites.net/latest/linux-deb-x64/stable apt-get -o DPkg::Lock::Timeout=-1 -y install ./azuredatastudio.deb diff --git a/scripts/insomnia.sh b/scripts/insomnia.sh index b8db575..e14e2ad 100755 --- a/scripts/insomnia.sh +++ b/scripts/insomnia.sh @@ -4,11 +4,9 @@ set -eux echo "\nInstalling Insomnia ...\n" # Add to sources -curl -1sLf \ - 'https://packages.konghq.com/public/insomnia/setup.deb.sh' \ +wget -qO- 'https://packages.konghq.com/public/insomnia/setup.deb.sh' \ | sudo -E distro=ubuntu codename=focal bash # Refresh repository sources and install Insomnia - apt-get -o DPkg::Lock::Timeout=-1 -y update apt-get -o DPkg::Lock::Timeout=-1 -y install insomnia diff --git a/scripts/minikube.sh b/scripts/minikube.sh index 14b6eca..00feb33 100755 --- a/scripts/minikube.sh +++ b/scripts/minikube.sh @@ -2,6 +2,6 @@ set -eux echo "\nInstalling Minikube ...\n" -curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb +wget https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb apt-get -o DPkg::Lock::Timeout=-1 -y install ./minikube_latest_amd64.deb rm minikube_latest_amd64.deb diff --git a/scripts/rider.sh b/scripts/rider.sh index a65074b..c44284e 100755 --- a/scripts/rider.sh +++ b/scripts/rider.sh @@ -4,9 +4,8 @@ set -eux RIDER_VERSION='2023.3.2' echo "\nInstalling Rider $RIDER_VERSION ...\n" -# download using curl -curl -LO "https://download.jetbrains.com/rider/JetBrains.Rider-$RIDER_VERSION.tar.gz" - +# download using wget +wget "https://download.jetbrains.com/rider/JetBrains.Rider-$RIDER_VERSION.tar.gz" # download sha256sum file and verify the checksum wget "https://download.jetbrains.com/rider/JetBrains.Rider-$RIDER_VERSION.tar.gz.sha256" -O expected_sha256sum.txt