From 5bd15b32f38fd3da14b21cbd19bd86142aa13c85 Mon Sep 17 00:00:00 2001 From: Bruno Sutic Date: Mon, 30 Mar 2015 13:50:04 +0200 Subject: [PATCH] Small refactor --- scripts/set_tpm_path.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/set_tpm_path.sh b/scripts/set_tpm_path.sh index a241636..5a5a5af 100755 --- a/scripts/set_tpm_path.sh +++ b/scripts/set_tpm_path.sh @@ -10,13 +10,9 @@ set_default_tpm_path() { tmux set-environment -g TMUX_PLUGIN_MANAGER_PATH "$default_tpm_path" } -ensure_tpm_path() { +main() { if ! tpm_path_set; then set_default_tpm_path fi } - -main() { - ensure_tpm_path -} main