mirror of
https://github.com/kforney/pentest-distro-builder.git
synced 2024-11-28 19:25:25 -07:00
Kaj Forney
582f5b5f5c
Former-commit-id: 09eacc3f3f761c2b3454d20356ba085d18bdb722 Former-commit-id: 89d8a1302bd2a72239fbe9ad9820be4ecda76cab
17 lines
211 B
Bash
17 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
|
|
}
|