prole/etc/lib/shell/knoe_guardrails.sh
chrisfu e75e03fb3f fix(rebrand): rename prole_*.sh shell libs to knoe_*.sh
check_kerberos.sh (already updated) sourced knoe_env.sh, knoe_secrets.sh,
knoe_string.sh, and knoe_yaml.sh but the files were still named prole_*.sh.
No other script referenced the old names, so this is a pure rename.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-03 14:57:09 -07:00

12 lines
188 B
Bash

#!/usr/bin/env bash
knoe_guard_nonempty() {
local name="$1"
local value="${2:-}"
if [[ -z "$value" ]]; then
echo "ERROR: ${name} is required" >&2
return 2
fi
return 0
}