mirror of
https://github.com/Hizenberg469/environment-setup.git
synced 2026-04-19 21:12:23 +03:00
complete
This commit is contained in:
18
env_setup.sh
18
env_setup.sh
@@ -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
|
||||||
|
findFileOrDir "env_variable" "$ORIGINAL_DIR" "f"
|
||||||
|
find_status=$?
|
||||||
|
if [ $find_status -eq $RETURN_SUCCESS ] ; then
|
||||||
rm $PWD/env_variable
|
rm $PWD/env_variable
|
||||||
|
fi
|
||||||
touch $PWD/env_variable
|
touch $PWD/env_variable
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user