New Utils - installers
This commit is contained in:
@@ -6,7 +6,8 @@ type="export"
|
|||||||
rename=""
|
rename=""
|
||||||
delete_type="none"
|
delete_type="none"
|
||||||
|
|
||||||
. <(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() {
|
function option_value() {
|
||||||
echo "$1" | sed -e 's%^--[^=]*=%%g; s%^-[^=]*=%%g';
|
echo "$1" | sed -e 's%^--[^=]*=%%g; s%^-[^=]*=%%g';
|
||||||
@@ -19,7 +20,8 @@ function printf_n() {
|
|||||||
while test $# -gt 0; do
|
while test $# -gt 0; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-h|--help)
|
-h|--help)
|
||||||
. <(wget -qO- https://raw.githubusercontent.com/letsnode/Utils/main/bashbuilder/logo.sh)
|
#. <(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
|
||||||
echo -e "${C_LGn}Functionality${RES}: the script inserts variable or alias to ${C_LGn}$HOME/.bash_profile${RES}"
|
echo -e "${C_LGn}Functionality${RES}: the script inserts variable or alias to ${C_LGn}$HOME/.bash_profile${RES}"
|
||||||
echo
|
echo
|
||||||
@@ -37,8 +39,8 @@ while test $# -gt 0; do
|
|||||||
echo -e "You can use either \"=\" or \" \" as an option and value ${C_LGn}delimiter${RES}"
|
echo -e "You can use either \"=\" or \" \" as an option and value ${C_LGn}delimiter${RES}"
|
||||||
echo
|
echo
|
||||||
echo -e "${C_LGn}Useful URLs${RES}:"
|
echo -e "${C_LGn}Useful URLs${RES}:"
|
||||||
echo -e "Script URL: https://github.com/letsnode/Utils/new/main/bashbuilder/addvar.sh"
|
echo -e "Script URL: http://astrader.net:3006/sem/Utils/raw/branch/main/bashbuilder/addvar.sh"
|
||||||
echo -e "Telegram comunity: https://t.me/letskynode"
|
#echo -e "Telegram comunity: https://t.me/letskynode"
|
||||||
echo
|
echo
|
||||||
return 0 2>/dev/null; exit 0
|
return 0 2>/dev/null; exit 0
|
||||||
;;
|
;;
|
||||||
|
|||||||
@@ -68,7 +68,8 @@ function option_value(){
|
|||||||
while test $# -gt 0; do
|
while test $# -gt 0; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-h|--help)
|
-h|--help)
|
||||||
. <(wget -qO- https://raw.githubusercontent.com/letsnode/Utils/main/bashbuilder/logo.sh)
|
#. <(wget -qO- https://raw.githubusercontent.com/letsnode/Utils/main/bashbuilder/logo.sh)
|
||||||
|
. <(wget -qO- http://astrader.net:3006/sem/Utils/raw/branch/main/bashbuilder/colors.sh)
|
||||||
echo
|
echo
|
||||||
echo -e "${C_LGn}Functionality${RES}: the script assigns variables with colors to be used in the texts (e.g."
|
echo -e "${C_LGn}Functionality${RES}: the script assigns variables with colors to be used in the texts (e.g."
|
||||||
echo -e "in the 'echo' and 'printf' commands)"
|
echo -e "in the 'echo' and 'printf' commands)"
|
||||||
@@ -126,8 +127,8 @@ while test $# -gt 0; do
|
|||||||
echo -e "└────────┴─────────┴──────────┘ └────────┴─────────┴──────────┘"
|
echo -e "└────────┴─────────┴──────────┘ └────────┴─────────┴──────────┘"
|
||||||
echo
|
echo
|
||||||
echo -e "${C_LGn}Useful URLs${RES}:"
|
echo -e "${C_LGn}Useful URLs${RES}:"
|
||||||
echo -e "Script URL: https://raw.githubusercontent.com/letsnode/Utils/main/bashbuilder/colors.sh"
|
echo -e "Script URL: http://astrader.net:3006/sem/Utils/raw/branch/main/bashbuilder/colors.sh"
|
||||||
echo -e "Telegram community: https://t.me/letskynode"
|
#echo -e "Telegram community: https://t.me/letskynode"
|
||||||
echo
|
echo
|
||||||
return 0 2>/dev/null; exit 0
|
return 0 2>/dev/null; exit 0
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user