Files
util.nix/lib/shell/check-tool.sh
2025-07-17 16:22:31 +00:00

7 lines
155 B
Bash

check_tool() {
if ! command -v "$1" >/dev/null; then
echo "Required tool \`$2\` are not installed or binary \`$1\` not found." >&2
exit 1
fi
}