mirror of
https://github.com/dredx/prole.git
synced 2026-09-27 15:04:30 +00:00
- Introduce lib/shell helpers and keep etc/* scripts thin via compatibility shims - Move Kerberos validation to scripts/validation/check_kerberos.sh and update callers - Add deterministic shellspec unit tests under tests/shellspec/ and wire Maven to run them - Add minimal Spring Boot authority module with startup + /health endpoint and Maven wiring - Document the new layout in docs/layout.md Co-authored-by: Junie <junie@jetbrains.com>
17 lines
478 B
Bash
17 lines
478 B
Bash
#shellcheck shell=sh
|
|
|
|
major_minor=${SHELLSPEC_VERSION%".${SHELLSPEC_VERSION#*.*.}"}
|
|
if [ "${major_minor%.*}" -eq 0 ] && [ "${major_minor#*.}" -lt 28 ]; then
|
|
echo "ShellSpec version 0.28.0 or higher is required." >&2
|
|
exit 1
|
|
fi
|
|
|
|
if (eval 'array=(1 2 3)') 2>/dev/null; then
|
|
export SHELLSPEC_PATTERN="$SHELLSPEC_PATTERN|*_spec.array.sh"
|
|
fi
|
|
|
|
if [ "$SHELLSPEC_DEFECT_SANDBOX" ]; then
|
|
echo "The sandbox feature was automatically disabled." >&2
|
|
export SHELLSPEC_SANDBOX=''
|
|
fi
|