1
0
Fork 0
mirror of synced 2025-01-15 09:26:15 -05:00
tpm/scripts/helpers/utility.sh

20 lines
232 B
Bash
Raw Normal View History

2025-01-09 19:11:39 -05:00
#!/usr/bin/env bash
2015-08-03 11:40:50 -04:00
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
}