From 68885e577e1800f3f5375b2a6e3c6c043baa9be1 Mon Sep 17 00:00:00 2001 From: sem Date: Mon, 5 Sep 2022 14:42:35 +0300 Subject: [PATCH] Utils --- miscellaneous/insert_variable.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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