mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-14 11:04:29 +05:00
fix(crowsnest): uninstaller exited KIAUH if crowsnest not installed
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
@@ -117,18 +117,22 @@ function install_crowsnest(){
|
|||||||
|
|
||||||
# Remove func
|
# Remove func
|
||||||
function remove_crowsnest(){
|
function remove_crowsnest(){
|
||||||
pushd "${HOME}/crowsnest" &> /dev/null || exit 1
|
if [[ -d "${CROWSNEST_DIR}" ]]; then
|
||||||
title_msg "Uninstaller will prompt you for sudo password!"
|
pushd "${HOME}/crowsnest" &> /dev/null || exit 1
|
||||||
status_msg "Launching crowsnest uninstaller ..."
|
title_msg "Uninstaller will prompt you for sudo password!"
|
||||||
if ! make uninstall; then
|
status_msg "Launching crowsnest uninstaller ..."
|
||||||
error_msg "Something went wrong! Please try again..."
|
|
||||||
exit 1
|
if ! make uninstall; then
|
||||||
fi
|
error_msg "Something went wrong! Please try again..."
|
||||||
if [[ -e "${CROWSNEST_DIR}" ]]; then
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
status_msg "Removing crowsnest directory ..."
|
status_msg "Removing crowsnest directory ..."
|
||||||
rm -rf "${CROWSNEST_DIR}"
|
rm -rf "${CROWSNEST_DIR}"
|
||||||
ok_msg "Directory removed!"
|
ok_msg "Directory removed!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
print_confirm "Crowsnest successfully removed!"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Status funcs
|
# Status funcs
|
||||||
|
|||||||
Reference in New Issue
Block a user