You've already forked netbox-docker
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:
9
build-functions/check-commands.sh
Normal file
9
build-functions/check-commands.sh
Normal 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
|
Reference in New Issue
Block a user