mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-20 04:26:25 +00:00
update comments and output
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user