Utils
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
Each script helps you to install compiler
|
||||
|
||||
Example to use docker:
|
||||
. <(wget -qO- https://raw.githubusercontent.com/letsnode/Utils/main/installers/docker.sh)
|
||||
. <(wget -qO- http://astrader.net:3006/sem/Utils/raw/branch/main/Installers/docker.sh)
|
||||
|
||||
go:
|
||||
. <(wget -qO- https://raw.githubusercontent.com/letsnode/Utils/main/installers/golang.sh)
|
||||
. <(wget -qO- http://astrader.net:3006/sem/Utils/raw/branch/main/Installers/golang.sh)
|
||||
|
||||
rust:
|
||||
. <(wget -qO- https://raw.githubusercontent.com/letsnode/Utils/main/installers/rust.sh)
|
||||
. <(wget -qO- http://astrader.net:3006/sem/Utils/raw/branch/main/Installers/rust.sh)
|
||||
@@ -3,7 +3,8 @@
|
||||
dive="false"
|
||||
action="install"
|
||||
|
||||
. <(wget -qO- https://raw.githubusercontent.com/letsnode/Utils/main/bashbuilder/colors.sh) --
|
||||
#. <(wget -qO- https://raw.githubusercontent.com/letsnode/Utils/main/bashbuilder/colors.sh) --
|
||||
. <(wget -qO- http://astrader.net:3006/sem/Utils/raw/branch/main/bashbuilder/colors.sh) --
|
||||
|
||||
function option_value() {
|
||||
echo "$1" | sed -e 's%^--[^=]*=%%g; s%^-[^=]*=%%g';
|
||||
@@ -59,7 +60,7 @@ function uninstall() {
|
||||
while test $# -gt 0; do
|
||||
case "$1" in
|
||||
-h|--help)
|
||||
. <(wget -qO- https://raw.githubusercontent.com/letsnode/Utils/main/bashbuilder/logo.sh)
|
||||
. <(wget -qO- http://astrader.net:3006/sem/Utils/raw/branch/main/bashbuilder/logo.sh)
|
||||
echo
|
||||
echo -e "${C_LGn}Functionality${RES}: the script installs or uninstalls Docker"
|
||||
echo
|
||||
@@ -71,7 +72,7 @@ while test $# -gt 0; do
|
||||
echo -e " -u, --uninstall uninstall Docker (${C_R}completely delete all images and containers${RES})"
|
||||
echo
|
||||
echo -e "${C_LGn}Useful URLs${RES}:"
|
||||
echo -e "Script URL: https://raw.githubusercontent.com/letsnode/Utils/main/installers/docker.sh"
|
||||
echo -e "Script URL: http://astrader.net:3006/sem/Utils/raw/branch/main/Installers/docker.sh"
|
||||
echo -e "Telegram community: https://t.me/letskynode — node Community"
|
||||
echo
|
||||
return 0 2>/dev/null; exit 0
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
action="install"
|
||||
go_version="1.18.1"
|
||||
|
||||
. <(wget -qO- https://raw.githubusercontent.com/letsnode/Utils/main/bashbuilder/colors.sh) --
|
||||
#. <(wget -qO- https://raw.githubusercontent.com/letsnode/Utils/main/bashbuilder/colors.sh) --
|
||||
. <(wget -qO- http://astrader.net:3006/sem/Utils/raw/branch/main/bashbuilder/colors.sh) --
|
||||
|
||||
function option_value() {
|
||||
echo "$1" | sed -e 's%^--[^=]*=%%g; s%^-[^=]*=%%g';
|
||||
@@ -22,7 +23,7 @@ function install() {
|
||||
sudo rm -rf /usr/local/go
|
||||
sudo tar -C /usr/local -xzf "go${go_version}.linux-amd64.tar.gz"
|
||||
rm "go${go_version}.linux-amd64.tar.gz"
|
||||
. <(wget -qO- https://raw.githubusercontent.com/letsnode/Utils/main/bashbuilder/addvar.sh) -n "PATH" -v "$PATH:/usr/local/go/bin:$HOME/go/bin"
|
||||
. <(wget -qO- http://astrader.net:3006/sem/Utils/raw/branch/main/bashbuilder/addvar.sh) -n "PATH" -v "$PATH:/usr/local/go/bin:$HOME/go/bin"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -35,7 +36,7 @@ function uninstall() {
|
||||
while test $# -gt 0; do
|
||||
case "$1" in
|
||||
-h|--help)
|
||||
. <(wget -qO- https://raw.githubusercontent.com/letsnode/Utils/main/bashbuilder/logo.sh)
|
||||
. <(wget -qO- http://astrader.net:3006/sem/Utils/raw/branch/main/bashbuilder/logo.sh)
|
||||
echo
|
||||
echo -e "${C_LGn}Functionality${RES}: the script installs or uninstalls GO"
|
||||
echo
|
||||
@@ -49,9 +50,9 @@ while test $# -gt 0; do
|
||||
echo -e "You can use either \"=\" or \" \" as an option and value ${C_LGn}delimiter${RES}"
|
||||
echo
|
||||
echo -e "${C_LGn}Useful URLs${RES}:"
|
||||
echo -e "https://raw.githubusercontent.com/letsnode/Utils/main/installers/golang.sh - script URL"
|
||||
echo -e "https://t.me/letskynode — node Community"
|
||||
echo -e "https://teletype.in/@letskynode — guides and articles"
|
||||
echo -e "http://astrader.net:3006/sem/Utils/raw/branch/main/Installers/golang.sh - script URL"
|
||||
# echo -e "https://t.me/letskynode — node Community"
|
||||
# echo -e "https://teletype.in/@letskynode — guides and articles"
|
||||
echo
|
||||
return 0 2>/dev/null; exit 0
|
||||
;;
|
||||
|
||||
+7
-5
@@ -4,12 +4,14 @@ function="install"
|
||||
nightly="false"
|
||||
|
||||
# Options
|
||||
. <(wget -qO- https://raw.githubusercontent.com/letsnode/Utils/main/bashbuilder/colors.sh) --
|
||||
#. <(wget -qO- https://raw.githubusercontent.com/letsnode/Utils/main/bashbuilder/colors.sh) --
|
||||
. <(wget -qO- http://astrader.net:3006/sem/Utils/raw/branch/main/bashbuilder/colors.sh) --
|
||||
option_value(){ echo "$1" | sed -e 's%^--[^=]*=%%g; s%^-[^=]*=%%g'; }
|
||||
while test $# -gt 0; do
|
||||
case "$1" in
|
||||
-h|--help)
|
||||
. <(wget -qO- https://raw.githubusercontent.com/letsnode/Utils/main/bashbuilder/logo.sh)
|
||||
. <(wget -qO- http://astrader.net:3006/sem/Utils/raw/branch/main/bashbuilder/logo.sh)
|
||||
|
||||
echo
|
||||
echo -e "${C_LGn}Functionality${RES}: the script installs or uninstalls Rust"
|
||||
echo
|
||||
@@ -21,10 +23,10 @@ while test $# -gt 0; do
|
||||
echo -e " -u, --uninstall uninstall Rust"
|
||||
echo
|
||||
echo -e "${C_LGn}Useful URLs${RES}:"
|
||||
echo -e "Script URL: https://raw.githubusercontent.com/letsnode/Utils/main/installers/rust.sh"
|
||||
echo -e "Script URL: http://astrader.net:3006/sem/Utils/raw/branch/main/Installers/rust.sh"
|
||||
echo -e "https://www.rust-lang.org/tools/install — Rust installation"
|
||||
echo -e "https://t.me/letskynode — node Community"
|
||||
echo -e "https://teletype.in/@letskynode — guides and articles"
|
||||
# echo -e "https://t.me/letskynode — node Community"
|
||||
# echo -e "https://teletype.in/@letskynode — guides and articles"
|
||||
echo
|
||||
return 0 2>/dev/null; exit 0
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user