Utils
This commit is contained in:
@@ -74,17 +74,17 @@ printf_n(){ printf "$1\n" "${@:2}"; }
|
|||||||
# Actions
|
# Actions
|
||||||
|
|
||||||
#touch $HOME/.bash_profile
|
#touch $HOME/.bash_profile
|
||||||
if [ -f ~/.bash_profile ];
|
if [ -f $HOME/.bash_profile ];
|
||||||
then
|
then
|
||||||
echo -e "${C_LGn}File bash_profile is exist${RES}"
|
echo -e "${C_LGn}File bash_profile is exist${RES}"
|
||||||
else
|
else
|
||||||
if [ -f ~/.profile ];
|
if [ -f $HOME/.profile ];
|
||||||
then
|
then
|
||||||
echo -e "${C_LGn}Make necessary link to file bash_profile${RES}"
|
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
|
else
|
||||||
echo "создаем файл bash_profle"
|
echo "создаем файл bash_profle"
|
||||||
touch $HOME/.bash_profile
|
touch $HOME/.bash_profile
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
. $HOME/.bash_profile
|
. $HOME/.bash_profile
|
||||||
|
|||||||
Reference in New Issue
Block a user