Utils
This commit is contained in:
@@ -74,14 +74,14 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user