From 363e625c32173788221c43aaec89aa511292b79d Mon Sep 17 00:00:00 2001 From: sem Date: Mon, 5 Sep 2022 13:18:19 +0300 Subject: [PATCH] Utils --- Installers/docker.sh | 4 ++-- Installers/golang.sh | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Installers/docker.sh b/Installers/docker.sh index f809fb0..0968ef3 100644 --- a/Installers/docker.sh +++ b/Installers/docker.sh @@ -13,9 +13,9 @@ function option_value() { function install() { if [ -f ~/.bash_profile ]; then - echo -e "${C_LGn}Bash_profile exist${RES}" + echo -e "${C_LGn}File bash_profile is exist${RES}" else - echo -e "${C_LGn}Make link bash_profile${RES}" + echo -e "${C_LGn}Make necessary link to file bash_profile${RES}" ln -s ~/.profile ~/.bash_profile fi diff --git a/Installers/golang.sh b/Installers/golang.sh index b4ba817..d5656bb 100644 --- a/Installers/golang.sh +++ b/Installers/golang.sh @@ -13,9 +13,9 @@ function install() { if [ -f ~/.bash_profile ]; then - echo -e "${C_LGn}Bash_profile exist${RES}" + echo -e "${C_LGn}File bash_profile is exist${RES}" else - echo -e "${C_LGn}Make link bash_profile${RES}" + echo -e "${C_LGn}Make necessary link to file bash_profile${RES}" ln -s ~/.profile ~/.bash_profile fi @@ -23,8 +23,10 @@ function install() { if ! go version | grep -q $go_version; then sed -i "s%:`which go | sed 's%/bin/go%%g'`%%g" $HOME/.bash_profile rm -rf `which go | sed 's%/bin/go%%g'` + echo -e "${C_LGn}Update & Upgrade your system ...${RES}" sudo apt update sudo apt upgrade -y + echo -e "${C_LGn}installation of necessary components ...${RES}" sudo apt install tar wget git make -y cd "$HOME" wget -t 5 "https://go.dev/dl/go${go_version}.linux-amd64.tar.gz"