Accept config path option

This commit is contained in:
thePR0M3TH3AN
2025-06-17 21:12:33 -04:00
parent 3a52e20caa
commit afc88a7324
6 changed files with 21 additions and 7 deletions

View File

@@ -2,6 +2,8 @@
set -euo pipefail
CONFIG_PATH="${1:-config.json}"
require_cmd() {
command -v "$1" >/dev/null 2>&1 || {
echo "Error: required command '$1' not found" >&2