infctl-cli/vagrant/dev/ubuntu/scripts/check_install_infctl.sh
2025-09-05 17:21:19 +01:00

20 lines
393 B
Bash
Executable file

#!/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."