File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
files/system/usr/share/ublue-os/just Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ alias brew := install-brew
2
+
3
+ # Install Homebrew | https://brew.sh
4
+ install-brew :
5
+ #!/usr/bin/env bash
6
+ source / usr/ lib/ ujust/ ujust.sh
7
+ if [[ ! -f " /var/home/linuxbrew/.linuxbrew/bin" || ! -x " /var/home/linuxbrew/.linuxbrew/bin/brew" ]]; then
8
+ echo " ${b}Brew Installation${n}"
9
+ echo " Please ${b}IGNORE${n} everything the installer tells you to do at the end"
10
+ echo " We have already done it for you! You just need to close and re-open the terminal after installation"
11
+ echo " Do you understand?"
12
+ echo " Please type in \" YES I UNDERSTAND\" and press enter"
13
+ read ACCEPT
14
+ if [ " $ACCEPT" == " YES I UNDERSTAND" ]; then
15
+ / bin/ bash -c " $(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
16
+ else
17
+ echo " Capitalization matters when you type \" YES I UNDERSTAND\" "
18
+ fi
19
+ fi
20
+
21
+ # Removes homebrew from system
22
+ remove-brew :
23
+ echo " Removing homebrew ..."
24
+ / bin/ bash -c " $(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
You can’t perform that action at this time.
0 commit comments