update comments and output

This commit is contained in:
AJ ONeal
2020-06-14 12:43:22 -06:00
parent e297427e0b
commit 119ba20bbc
7 changed files with 13 additions and 0 deletions
+6
View File
@@ -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"
}
+1
View File
@@ -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));
});
}
+1
View File
@@ -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
}
+1
View File
@@ -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));
});
}
+1
View File
@@ -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
}
+2
View File
@@ -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
}
+1
View File
@@ -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));
});