mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 17:34:31 +00:00
12 lines
189 B
Bash
12 lines
189 B
Bash
#!/usr/bin/env bash
|
|
|
|
prole_guard_nonempty() {
|
|
local name="$1"
|
|
local value="${2:-}"
|
|
if [[ -z "$value" ]]; then
|
|
echo "ERROR: ${name} is required" >&2
|
|
return 2
|
|
fi
|
|
return 0
|
|
}
|