Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
8 changes: 8 additions & 0 deletions scripts/helpers/utility.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions scripts/install_plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down