This repository has been archived by the owner on Jul 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuninstall
65 lines (65 loc) · 2.67 KB
/
uninstall
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
echo "Welcome to the BFDI: Branches for Windows uninstaller! You will be prompted on what programs you would like to remove."
sleep 3
echo "Click [y] to uninstall Homebrew or any other key to leave it as is"
read -p "Would you like to uninstall Homebrew? It may be required to play BFDI: Branches when playing on newer MacOS versions." -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo "Safety wait - Remember you are uninstalling Homebrew."
echo "Starting in 10 seconds"
sleep 10
echo "Starting"
sleep 3
# Uninstall Homebrew
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
fi
echo "--------------------"
echo ""
echo "Click [y] to uninstall XCode or click any other key to leave it as is"
read -p "Would you like to uninstall XCode? It will render Homebrew useless if you chose to keep it." -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo "Safety wait - You are uninstalling XCode's Command Line Tools which renders Homebrew useless."
echo "Starting in 10 seconds"
sleep 10
echo "Starting"
sleep 3
# Uninstall XCode's CLT
rm -rf /Library/Developer/CommandLineTools
fi
echo "--------------------"
echo ""
echo "Click [y] to uninstall Wine and it's dependencies or click any other key to leave it as is"
read -p "Would you like to uninstall Wine? It will render the BFDI: Branches installation useless." -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo "Safety wait - You are uninstalling Wine which renders the BFDI: Branches installation useless."
echo "Starting in 10 seconds"
sleep 10
echo "Starting"
sleep 3
# Uninstall XCode's CLT
rm -rf /Library/Developer/CommandLineTools
fi
echo "--------------------"
echo "IF YOU HAVE MOVED THE BFDI: BRANCHES INSTALLATION AND SCRIPTS FROM IT'S ORIGINAL LOCATION OR RENAMED THE FOLDERS THIS WILL NOT WORK!!!"
echo ""
echo "Click [y] to uninstall the BFDI: Branches installation and install scripts or click any other key to leave it as is"
read -p "Would you like to uninstall BFDI: Branches and the install scripts? It will render the BFDI: Branches installation useless." -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo "Safety wait - You are uninstalling the BFDI: Branches installation and all the uninstall scripts, including this one."
echo "Starting in 10 seconds"
sleep 10
echo "Starting"
sleep 3
# Uninstall XCode's CLT
rm -rfi ~/Downloads/BFDIBranches
rm -rfi ~/Downloads/BFDIBranches-MacOS
fi
echo "-----"
echo "Uninstallation tool finished"
echo "-----"