1
0
mirror of https://github.com/netbox-community/netbox-docker.git synced 2025-08-05 16:55:46 +03:00

Added check for commands to all scripts

This commit is contained in:
Tobias Genannt
2023-03-15 13:01:07 +01:00
parent 4bad061bc4
commit 4ce89f9209
3 changed files with 15 additions and 7 deletions

View File

@@ -0,0 +1,9 @@
#!/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