From 785500e0cdc7bbc0a195a3fba1214a8dfc577737 Mon Sep 17 00:00:00 2001 From: sem Date: Mon, 5 Sep 2022 15:16:21 +0300 Subject: [PATCH] Utils --- miscellaneous/insert_variable.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/miscellaneous/insert_variable.sh b/miscellaneous/insert_variable.sh index 89885bc..b8b2240 100644 --- a/miscellaneous/insert_variable.sh +++ b/miscellaneous/insert_variable.sh @@ -78,6 +78,10 @@ printf_n(){ printf "$1\n" "${@:2}"; } if [ -f $FILE_BASH ]; then echo -e "${C_LGn}File bash_profile is exist${RES}" + if [ -f $HOME/.profile ]; + then + FILE_BASH=$HOME/.profile + fi else if [ -f $HOME/.profile ]; then