}
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"
}
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