diff options
| author | Cody Hiar <codyfh@gmail.com> | 2017-02-13 09:54:26 -0700 | 
|---|---|---|
| committer | Cody Hiar <codyfh@gmail.com> | 2017-02-13 09:54:26 -0700 | 
| commit | 783ab79ab721593b0ac85ab4d8ea9b74fa5fe72e (patch) | |
| tree | 03ac1d680ab401874ed95a78887c56d6eb268a61 /plugins/tpm/scripts/helpers/utility.sh | |
| parent | 2eede125238144e9d37cf856aaaeda3c5de5aab3 (diff) | |
Adding tpm
Diffstat (limited to 'plugins/tpm/scripts/helpers/utility.sh')
| -rw-r--r-- | plugins/tpm/scripts/helpers/utility.sh | 17 | 
1 files changed, 17 insertions, 0 deletions
diff --git a/plugins/tpm/scripts/helpers/utility.sh b/plugins/tpm/scripts/helpers/utility.sh new file mode 100644 index 0000000..de6eb35 --- /dev/null +++ b/plugins/tpm/scripts/helpers/utility.sh @@ -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 +}  | 
