diff --git a/miscellaneous/insert_variable.sh b/miscellaneous/insert_variable.sh index db5fdca..1d8e9f1 100644 --- a/miscellaneous/insert_variable.sh +++ b/miscellaneous/insert_variable.sh @@ -74,17 +74,17 @@ printf_n(){ printf "$1\n" "${@:2}"; } # Actions #touch $HOME/.bash_profile - if [ -f ~/.bash_profile ]; + if [ -f $HOME/.bash_profile ]; then echo -e "${C_LGn}File bash_profile is exist${RES}" else - if [ -f ~/.profile ]; + if [ -f $HOME/.profile ]; then echo -e "${C_LGn}Make necessary link to file bash_profile${RES}" - ln -s ~/.profile ~/.bash_profile + ln -s $HOME/.profile $HOME/.bash_profile else echo "создаем файл bash_profle" - touch $HOME/.bash_profile + touch $HOME/.bash_profile fi fi . $HOME/.bash_profile