mirror of
https://github.com/dredx/prole.git
synced 2026-09-27 13:34:31 +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
331 B
Bash
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 "$@"
|
|
}
|