prole/tests/shellspec/.vendor/shellspec-0.28.1/lib/libexec/executor.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
331 B
Bash

#shellcheck shell=sh disable=SC2004
count_specfiles() {
eval "$1=0; found_specfile() { $1=\$((\$$1 + 1)); }"
shift
eval find_specfiles found_specfile ${1+'"$@"'}
}
create_workdirs() {
i=0
while [ "$i" -lt "$1" ] && i=$(($i + 1)); do
set -- "$@" "$SHELLSPEC_TMPBASE/$i"
done
shift
[ $# -eq 0 ] || mkdir "$@"
}