21 lines
393 B
Bash
21 lines
393 B
Bash
|
|
#!/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."
|