From: AJ ONeal Date: Sun, 14 Jun 2020 08:21:52 +0000 (-0600) Subject: add missing quotes X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=8c1fd8b75fc840438720351f416889b53e4635b2;p=webi-installers%2F.git add missing quotes --- 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"