mirror of
https://github.com/kforney/pentest-distro-builder.git
synced 2024-07-05 09:37:21 -06:00
Former-commit-id: 7bddceacd727c25153cd0ec03cf8b0d4011484d5 Former-commit-id: aaf57e63c1976b3960fee717c68c3b09dc1a94ff
18 lines
211 B
Bash
18 lines
211 B
Bash
ensure_tpm_path_exists() {
|
|
mkdir -p "$(tpm_path)"
|
|
}
|
|
|
|
fail_helper() {
|
|
local message="$1"
|
|
echo "$message" >&2
|
|
FAIL="true"
|
|
}
|
|
|
|
exit_value_helper() {
|
|
if [ "$FAIL" == "true" ]; then
|
|
exit 1
|
|
else
|
|
exit 0
|
|
fi
|
|
}
|