From 39804a7b20552de21a8f3ed967860803228a6766 Mon Sep 17 00:00:00 2001 From: Loukas Agorgianitis Date: Wed, 28 Aug 2024 19:26:46 +0300 Subject: [PATCH] fix: setup script doesn't work on rhel based images with some curl variant already installed --- scripts/install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 2aaaebaef..2e25b9a38 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -93,7 +93,10 @@ centos | fedora | rhel | ol | rocky | almalinux | amzn) if ! command -v dnf >/dev/null; then yum install -y dnf >/dev/null fi - dnf install -y curl wget git jq >/dev/null + if ! command -v curl >/dev/null; then + dnf install -y curl >/dev/null + fi + dnf install -y wget git jq >/dev/null fi ;; sles | opensuse-leap | opensuse-tumbleweed)