mirror of
https://github.com/dredx/prole.git
synced 2026-09-27 16:14: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>
21 lines
462 B
Bash
21 lines
462 B
Bash
#shellcheck shell=sh disable=SC2004
|
|
|
|
# busybox 1.1.3: `-A n`, `-t o1` not supported
|
|
# busybox 1.10.2: `od -b` not working properly
|
|
od_command() {
|
|
od -t o1 -v 2>/dev/null && return 0
|
|
[ $? -eq 127 ] && hexdump -b -v 2>/dev/null && return 0
|
|
od -b -v
|
|
}
|
|
|
|
octal_dump() {
|
|
od_command | (
|
|
while IFS= read -r line; do
|
|
eval "set -- $line"
|
|
[ $# -gt 1 ] || continue
|
|
shift
|
|
while [ $# -gt 0 ]; do echo "$1" && shift; done
|
|
done
|
|
) &&:
|
|
}
|