Skip to content

Commit 1e3e7db

Browse files
committed
update
1 parent 550b4e0 commit 1e3e7db

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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)"

0 commit comments

Comments
 (0)