1
0
Fork 0
mirror of synced 2024-05-24 11:10:29 -04:00
tpm/scripts/helpers/utility.sh
2015-08-03 17:56:45 +02:00

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
}