netbox-docker/build-functions/check-commands.sh
2023-03-15 13:02:25 +01:00

10 lines
213 B
Bash

#!/bin/bash
NEEDED_COMMANDS="curl jq docker skopeo"
for c in $NEEDED_COMMANDS; do
if ! command -v "$c" &>/dev/null; then
echo "⚠️ '$c' is not installed. Can't proceed with build."
exit 1
fi
done