From: AJ ONeal Date: Sun, 14 Jun 2020 18:43:22 +0000 (-0600) Subject: update comments and output X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=119ba20bbc3cf01c5da081d6398bb0ac110ba96f;p=webi-installers%2F.git update comments and output --- diff --git a/caddy/install.bash b/caddy/install.bash index 75521b3..73fd2d0 100644 --- a/caddy/install.bash +++ b/caddy/install.bash @@ -59,9 +59,11 @@ pkg_install() { # ex (single file): ./caddy-v2.0.0-linux-amd64.exe mv ./"$pkg_cmd_name"* "$pkg_common_cmd" + chmod a+x "$pkg_common_cmd" # ex (single file, nested in directory): ./rg/rg-v13-linux-amd64 #mv ./"$pkg_cmd_name"*/"$pkg_cmd_name"* "$pkg_commend_cmd" + #chmod a+x "$pkg_common_cmd" popd 2>&1 >/dev/null } @@ -74,3 +76,7 @@ pkg_post_install() { # Adds "$HOME/.local/bin" to PATH webi_path_add "$pkg_common_bin" } + +pkg_post_install_message() { + echo "Installed 'caddy' v$WEBI_VERSION as $pkg_common_cmd" +} diff --git a/caddy/releases.js b/caddy/releases.js index 0b3c77d..bc026d1 100644 --- a/caddy/releases.js +++ b/caddy/releases.js @@ -16,6 +16,7 @@ module.exports = function (request) { if (module === require.main) { module.exports(require('@root/request')).then(function (all) { + all = require('../_common/normalize.js')(all); console.info(JSON.stringify(all)); }); } diff --git a/gitea/install.bash b/gitea/install.bash index 171c03e..d54a3e5 100644 --- a/gitea/install.bash +++ b/gitea/install.bash @@ -52,6 +52,7 @@ pkg_install() { # (this will be "$HOME/.local/bin/gitea" by default) mkdir -p "$pkg_common_bin" mv ./"$pkg_cmd_name"* "$pkg_common_cmd" + chmod a+x "$pkg_common_cmd" popd 2>&1 >/dev/null } diff --git a/gitea/releases.js b/gitea/releases.js index 5895554..41e1ee5 100644 --- a/gitea/releases.js +++ b/gitea/releases.js @@ -16,6 +16,7 @@ module.exports = function (request) { if (module === require.main) { module.exports(require('@root/request')).then(function (all) { + all = require('../_common/normalize.js')(all); console.info(JSON.stringify(all)); }); } diff --git a/hugo/install.bash b/hugo/install.bash index 9c08e61..6e3c108 100644 --- a/hugo/install.bash +++ b/hugo/install.bash @@ -56,6 +56,7 @@ pkg_install() { # (this will be "$HOME/.local/opt/node-v$WEBI_VERSION" by default) mkdir -p "$pkg_common_bin" mv ./"$pkg_cmd_name"* "$pkg_common_cmd" + chmod a+x "$pkg_common_cmd" popd 2>&1 >/dev/null } diff --git a/node/install.bash b/node/install.bash index 15feaf8..38b842f 100644 --- a/node/install.bash +++ b/node/install.bash @@ -127,9 +127,11 @@ pkg_install() { # ex (single file): ./caddy-v13-linux-amd64.exe #mv ./"$pkg_cmd_name"* "$pkg_common_cmd" + #chmod a+x "$pkg_common_cmd" # ex (single file, nested in directory): ./rg/rg-v13-linux-amd64 #mv ./"$pkg_cmd_name"*/"$pkg_cmd_name"* "$pkg_commend_cmd" + #chmod a+x "$pkg_common_cmd" popd 2>&1 >/dev/null } diff --git a/node/releases.js b/node/releases.js index c2fc470..9f0077b 100644 --- a/node/releases.js +++ b/node/releases.js @@ -140,6 +140,7 @@ module.exports = getAllReleases; if (module === require.main) { getAllReleases(require('@root/request')).then(function (all) { + all = require('../_common/normalize.js')(all); console.info(JSON.stringify(all)); //console.info(JSON.stringify(all, null, 2)); });