Move all helpers to 'helpers/' dir

This commit is contained in:
Bruno Sutic
2015-08-03 17:40:50 +02:00
parent 0e9b64ffc4
commit 9be7f975e9
7 changed files with 43 additions and 42 deletions

View File

@ -0,0 +1,17 @@
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
}