make link before add to PATH package's responsibility
authorAJ ONeal <coolaj86@gmail.com>
Sun, 14 Jun 2020 08:11:21 +0000 (02:11 -0600)
committerAJ ONeal <coolaj86@gmail.com>
Sun, 14 Jun 2020 08:11:21 +0000 (02:11 -0600)
flutter/install.bash
webi/template.bash

index 3223a99fd2b8a43943216d0207a148c76d25792f..1028ede25a81e7136db13ca2a74b47c0e71d8d63 100644 (file)
@@ -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"
 }
index a333db27b521cd4baea7a64f7678939fbab05dc4..d346078cf8bb775fda615a804fee7c9cc84e7dcc 100644 (file)
@@ -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