From c5c0ead6f64987a68084fad5ed3cb796cdc20f93 Mon Sep 17 00:00:00 2001 From: sem Date: Mon, 5 Sep 2022 12:37:12 +0300 Subject: [PATCH] Utils --- Installers/README.dm | 6 +++--- Installers/docker.sh | 7 ++++--- Installers/golang.sh | 13 +++++++------ Installers/rust.sh | 12 +++++++----- 4 files changed, 21 insertions(+), 17 deletions(-) diff --git a/Installers/README.dm b/Installers/README.dm index a197d2c..c78ddf0 100644 --- a/Installers/README.dm +++ b/Installers/README.dm @@ -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) \ No newline at end of file +. <(wget -qO- http://astrader.net:3006/sem/Utils/raw/branch/main/Installers/rust.sh) \ No newline at end of file diff --git a/Installers/docker.sh b/Installers/docker.sh index d556fec..e177935 100644 --- a/Installers/docker.sh +++ b/Installers/docker.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 diff --git a/Installers/golang.sh b/Installers/golang.sh index 6c507df..461786c 100644 --- a/Installers/golang.sh +++ b/Installers/golang.sh @@ -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 ;; diff --git a/Installers/rust.sh b/Installers/rust.sh index f9f3ee7..5240bab 100644 --- a/Installers/rust.sh +++ b/Installers/rust.sh @@ -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 ;;