1
1
Fork 0
dotfiles/scripts/helpers/utility.sh
sharpshark28 b43a98f3cc Squashed 'tpm/' content from commit 0ea31ae
git-subtree-dir: tpm
git-subtree-split: 0ea31ae2d624413719e97dc7e138ed6cf749c7d2
2017-01-21 16:49:30 -06:00

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
}