From b7f5ccf4d1ed1fcb59f573e8a8202506360f06c6 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 14 Jun 2020 02:11:21 -0600 Subject: [PATCH] make link before add to PATH package's responsibility --- flutter/install.bash | 5 +++-- webi/template.bash | 7 +++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/flutter/install.bash b/flutter/install.bash index 3223a99..1028ede 100644 --- a/flutter/install.bash +++ b/flutter/install.bash @@ -69,8 +69,9 @@ pkg_install() { } pkg_post_install() { - # web_path_add is defined in webi/template.bash at https://github.com/webinstall/packages + pkg_link_new_version - # Adds "$HOME/.local/opt/flutter-v$WEBI_VERSION" to PATH + # web_path_add is defined in webi/template.bash at https://github.com/webinstall/packages + # Adds "$HOME/.local/opt/flutter" to PATH webi_path_add "$pkg_common_bin" } diff --git a/webi/template.bash b/webi/template.bash index a333db2..d346078 100644 --- a/webi/template.bash +++ b/webi/template.bash @@ -182,9 +182,12 @@ if [ -n $(command -v pkg_install) ]; then pkg_install [ -n $(command -v pkg_post_install) ] && pkg_post_install - [ -n $(command -v pkg_link_new_version) ] && pkg_link_new_version - echo "Installed '$pkg_cmd_name' v$WEBI_VERSION as $pkg_new_cmd" + 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" + fi echo "" fi -- 2.25.1