diff --git a/Installers/check.sh b/Installers/check.sh deleted file mode 100644 index 857fdbc..0000000 --- a/Installers/check.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - if [ -f ~/.bash_profile ]; - then - echo "bash_profile exist" - else - echo "make link bash_profile" - ln -s ~/.profile ~/.bash_profile - fi \ No newline at end of file diff --git a/Installers/golang.sh b/Installers/golang.sh index 461786c..b4ba817 100644 --- a/Installers/golang.sh +++ b/Installers/golang.sh @@ -3,7 +3,6 @@ action="install" go_version="1.18.1" -#. <(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() { @@ -11,6 +10,15 @@ function option_value() { } function install() { + + if [ -f ~/.bash_profile ]; + then + echo -e "${C_LGn}Bash_profile exist${RES}" + else + echo -e "${C_LGn}Make link bash_profile${RES}" + ln -s ~/.profile ~/.bash_profile + fi + echo -e "${C_LGn}GO installation...${RES}" if ! go version | grep -q $go_version; then sed -i "s%:`which go | sed 's%/bin/go%%g'`%%g" $HOME/.bash_profile