Skip to content

Commit

Permalink
Remove duplicate package installation logic
Browse files Browse the repository at this point in the history
  • Loading branch information
grdumas committed Feb 18, 2025
1 parent 90194ea commit 7eaa4f3
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,6 @@ fi
# check for and install system packages
packages=(ansible-core git jq python python3-pip terraform wget)

for package in "${packages[@]}"; do
if dnf list installed "$package" &> /dev/null; then
echo "$package is installed."
elif [ $package == "terraform" ]; then
# Add the terraform repository from HashiCorp
# currently supported distros: fedora, RHEL
# reference: https://developer.hashicorp.com/terraform/cli/install/yum

# check for and install system packages
packages=(ansible-core git jq python python3-pip terraform wget)

for package in "${packages[@]}"; do
if dnf list installed "$package" &> /dev/null; then
echo "$package is installed."
Expand Down Expand Up @@ -96,20 +85,6 @@ for package in "${packages[@]}"; do

done

# install the package
sudo dnf install terraform-1.9.8-1 -y || {
exit 1
}
else
echo "Installing $package..."
sudo dnf install -y "$package" || {
exit 1
}
fi

done



# pip install requirements
python_packages=(boto boto3 'yq==2.10.0')
Expand Down

0 comments on commit 7eaa4f3

Please sign in to comment.