From 8c1fd8b75fc840438720351f416889b53e4635b2 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 14 Jun 2020 02:21:52 -0600 Subject: [PATCH] add missing quotes --- webi/template.bash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webi/template.bash b/webi/template.bash index d346078..b1f3639 100644 --- a/webi/template.bash +++ b/webi/template.bash @@ -165,7 +165,7 @@ webi_path_add() { ## ## -if [ -n $(command -v pkg_install) ]; then +if [ -n "$(command -v pkg_install)" ]; then pkg_cmd_name="${pkg_cmd_name:-$WEBI_NAME}" pkg_common_opt="${pkg_common_opt:-$HOME/.local/opt/$pkg_cmd_name}" @@ -176,14 +176,14 @@ if [ -n $(command -v pkg_install) ]; then pkg_new_bin="${pkg_new_bin:-$pkg_new_opt/bin}" pkg_new_cmd="${pkg_new_cmd:-$pkg_new_bin/$pkg_cmd_name}" - [ -n $(command -v pkg_pre_install) ] && pkg_pre_install + [ -n "$(command -v pkg_pre_install)" ] && pkg_pre_install echo "Installing '$pkg_cmd_name' v$WEBI_VERSION as $pkg_new_cmd" pkg_install - [ -n $(command -v pkg_post_install) ] && pkg_post_install + [ -n "$(command -v pkg_post_install)" ] && pkg_post_install - if [ -n $(command -v pkg_post_install_message) ]; then + if [ -n "$(command -v pkg_post_install_message)" ]; then pkg_post_install_message else echo "Installed '$pkg_cmd_name' v$WEBI_VERSION as $pkg_new_cmd" -- 2.25.1