prole/tests/shellspec/.vendor/shellspec-0.28.1/helper/env.sh
chrisfu 909e92109e Refactor shell layout; add shellspec + authority
- 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>
2026-03-13 09:19:56 -07:00

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