This commit is contained in:
2025-11-18 14:24:02 +00:00
parent ba642a9d79
commit ae510e50a0

View File

@@ -102,8 +102,8 @@ function printStatus {
# findFileOrDir <file or dir name> {(opt)dir} {(opt)type[f|d]} # findFileOrDir <file or dir name> {(opt)dir} {(opt)type[f|d]}
# return "" if not found # return 255 if not found
# return path to where it is present if found # return 0 if found
function findFileOrDir { function findFileOrDir {
if [ $# -lt 1 ] ; then if [ $# -lt 1 ] ; then
@@ -452,11 +452,11 @@ echo "$BANNER"
# Start the setup # Start the setup
environment_variable=( environment_variable=(
"ORIGINAL_DIR", "ORIGINAL_DIR"
"REPO_HOSTING_PLATFORM", "REPO_HOSTING_PLATFORM"
"CODEQUERY_GUI", "CODEQUERY_GUI"
"INSTALL_YCM", "INSTALL_YCM"
"INSTALL_CODEQUERY", "INSTALL_CODEQUERY"
"INSTALL_VIM_CODEQUERY" "INSTALL_VIM_CODEQUERY"
) )
@@ -467,7 +467,11 @@ echo "no : To move on with configuration"
read -p "Your choise : " choise read -p "Your choise : " choise
if [ "$choise" = "yes" ] ; then if [ "$choise" = "yes" ] ; then
rm $PWD/env_variable findFileOrDir "env_variable" "$ORIGINAL_DIR" "f"
find_status=$?
if [ $find_status -eq $RETURN_SUCCESS ] ; then
rm $PWD/env_variable
fi
touch $PWD/env_variable touch $PWD/env_variable