chore: some reformatting
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
@@ -70,16 +70,15 @@ function continue_config() {
|
|||||||
while true; do
|
while true; do
|
||||||
read -erp "${cyan}###### Continuing with configuration? (y/N):${white} " reply
|
read -erp "${cyan}###### Continuing with configuration? (y/N):${white} " reply
|
||||||
case "${reply}" in
|
case "${reply}" in
|
||||||
[Yy]* )
|
Y|y|Yes|yes)
|
||||||
break
|
select_msg "Yes"
|
||||||
;;
|
break;;
|
||||||
[Nn]* )
|
N|n|No|no|"")
|
||||||
|
select_msg "No"
|
||||||
warn_msg "Installation aborted by user ... Exiting!"
|
warn_msg "Installation aborted by user ... Exiting!"
|
||||||
exit 1
|
exit 1;;
|
||||||
;;
|
*)
|
||||||
* )
|
error_msg "Invalid Input!\n";;
|
||||||
echo -e "\e[31mERROR: Please type Y or N !\e[0m"
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
return 0
|
return 0
|
||||||
@@ -93,16 +92,13 @@ function install_crowsnest(){
|
|||||||
|
|
||||||
# Step 2: Clone crowsnest repo
|
# Step 2: Clone crowsnest repo
|
||||||
status_msg "Cloning 'crowsnest' repository ..."
|
status_msg "Cloning 'crowsnest' repository ..."
|
||||||
if [[ ! -d "${HOME}/crowsnest" ]] &&
|
if [[ ! -d "${HOME}/crowsnest" && -z "$(ls -A "${HOME}/crowsnest")" ]]; then
|
||||||
[[ -z "$(ls -A "${HOME}/crowsnest")" ]]; then
|
|
||||||
clone_crowsnest
|
clone_crowsnest
|
||||||
else
|
else
|
||||||
ok_msg "crowsnest repository already exists ..."
|
ok_msg "crowsnest repository already exists ..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Step 3: Install dependencies
|
# Step 3: Install dependencies
|
||||||
# status_msg "Install basic dependencies ..."
|
|
||||||
# install_basic_deps
|
|
||||||
dependency_check git make
|
dependency_check git make
|
||||||
|
|
||||||
# Step 4: Check for Multi Instance
|
# Step 4: Check for Multi Instance
|
||||||
@@ -159,7 +155,7 @@ get_crowsnest_status(){
|
|||||||
echo "Installed"
|
echo "Installed"
|
||||||
elif [[ "${count}" -gt 0 ]]; then
|
elif [[ "${count}" -gt 0 ]]; then
|
||||||
echo "Incomplete!"
|
echo "Incomplete!"
|
||||||
else
|
else
|
||||||
echo "Not installed!"
|
echo "Not installed!"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user