A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/funilrys/funceble/commit/def3ba404188236e34aa58740233540b039b7522 below:

Fix #67 · funilrys/funceble@def3ba4 · GitHub

This repository was archived by the owner on Apr 3, 2018. It is now read-only.

File tree Expand file treeCollapse file tree 1 file changed

+41

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+41

-0

lines changed Original file line number Diff line number Diff line change

@@ -647,6 +647,40 @@ update()

647 647

fi

648 648

}

649 649 650 +

################################# Delete/Uninstall #############################

651 +

# This part is the brain of the uninstallation logic

652 +

#

653 +

# @CalledBy Arguments Handle section

654 +

################################################################################

655 +

uninstall()

656 +

{

657 +

# We ask for confirmation

658 +

read -e -p "Do you really want to uninstall everything ? [Y/N] " uninstallConfirmation

659 + 660 +

# We log and show message

661 +

printf "Deletion of funceble" && printf "Deletion of funceble" >> ${logOutput}

662 + 663 +

# We filter the confirmation

664 +

case "${uninstallConfirmation}" in

665 +

n|N|*)

666 +

# We log and show on screen that we didn't delete anything

667 +

printf " ${red}${normal}\n" && printf " ✘\n" >> ${logOutput}

668 +

printf "\n\n${bold}${green}Thank you for keeping funceble!!${normal}\n\n"

669 +

exit 0

670 +

;;

671 +

y|Y)

672 +

# We delete everything

673 +

cd "$(dirname $(echo ${currentDir}))"

674 +

rm -fR ${currentDir} && printf " ${cyan}${normal}\n\n"

675 + 676 +

# We thank the user for using funceble

677 +

printf "${bold}${green}Thank you for having used Funceble!!${normal}\n\n"

678 +

printf "${bold}${green}You're not satisfied of Funceble?\nPlease let me know there: https://github.com/funilrys/funceble/issues/new?title=Not%20satisfied%20of%20Funceble ${normal}\n\n"

679 +

exit 0

680 +

;;

681 +

esac

682 +

}

683 + 650 684

################################## Usage #######################################

651 685

# Help function

652 686

#

@@ -657,8 +691,10 @@ usage()

657 691

echo "Usage: ${0} [ -d|--debug ] [ --help ] [ -t|--timeout ]"

658 692

echo ""

659 693

echo " {[ -i|--installation ]} || {[ -p|--production ]} || {[ -u|--update ]}"

694 +

echo " {[ --del ]}"

660 695

echo ""

661 696

echo " --debug -d Activate the debug mode with the installation (${red}${bold}Must be before ${cyan}-u${normal} ${red}${bold}or ${cyan}-i${normal})"

697 +

echo " --del Uninstall funceble and all its components"

662 698

echo " --help Print this screen"

663 699

echo " --installation -i Execute the installation script"

664 700

echo " --production -p Prepare the repository for production"

@@ -679,6 +715,11 @@ while [ "$#" -gt 0 ]; do

679 715

debug=true

680 716

shift 1

681 717

;;

718 +

# We catch if we have to uninstall everything

719 +

--del)

720 +

uninstall

721 +

shift 1

722 +

;;

682 723

# We catch if we have to show usage()

683 724

-h|--help)

684 725

usage

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4