infctl-cli/vagrant/dev/ubuntu/scripts/check_install_infctl.sh

21 lines
393 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# function to install infctl
install_infctl() {
echo "Installing infctl..."
# Add installation commands here
curl -L https://codeberg.org/headshed/infctl-cli/raw/branch/main/install.sh | bash
}
if ! command -v infctl &> /dev/null
then
echo "infctl could not be found, installing..."
install_infctl
fi
echo "infctl is installed and ready to use."