1
0
Fork 0
mirror of synced 2025-01-14 00:46:15 -05:00

Change location of verify_tpm_path_permissions function

This commit is contained in:
slange-dev 2025-01-10 01:34:51 +01:00
parent 99469c4a9b
commit d9420ee460
No known key found for this signature in database
GPG key ID: 1D45A63B186F4EFE
3 changed files with 10 additions and 8 deletions

View file

@ -1,6 +1,8 @@
# Changelog
### master
- change location of `verify_tpm_path_permissions` function from `scripts/install_plugins.sh` to `scripts/helper/utility.sh`.
Reason: it is a helper funcction, not a install function.
### v3.1.0, 2023-01-03
- upgrade to new version of `tmux-test`

View file

@ -2,6 +2,14 @@ ensure_tpm_path_exists() {
mkdir -p "$(tpm_path)"
}
verify_tpm_path_permissions() {
local path="$(tpm_path)"
# check the write permission flag for all users to ensure
# that we have proper access
[ -w "$path" ] ||
echo_err "$path is not writable!"
}
fail_helper() {
local message="$1"
echo "$message" >&2

View file

@ -58,14 +58,6 @@ install_plugins() {
done
}
verify_tpm_path_permissions() {
local path="$(tpm_path)"
# check the write permission flag for all users to ensure
# that we have proper access
[ -w "$path" ] ||
echo_err "$path is not writable!"
}
main() {
ensure_tpm_path_exists
verify_tpm_path_permissions