diff --git a/Installers/check.sh b/Installers/check.sh new file mode 100644 index 0000000..857fdbc --- /dev/null +++ b/Installers/check.sh @@ -0,0 +1,8 @@ +#!/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/docker.sh b/Installers/docker.sh index 903dc6a..e6e0f4d 100644 --- a/Installers/docker.sh +++ b/Installers/docker.sh @@ -11,7 +11,10 @@ function option_value() { } function install() { - ln -s ~/.profile ~/.bash_profile + if [ -f ~/.bash_profile ]; then + ln -s ~/.profile ~/.bash_profile + fi + cd if ! docker --version; then echo -e "${C_LGn}Docker installation...${RES}"