-
Notifications
You must be signed in to change notification settings - Fork 1
/
inst-script.sh
38 lines (38 loc) · 3.02 KB
/
inst-script.sh
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
echo "──────────────────────────────────────────────
─██████████████─██████████████─██████████████─
─██░░░░░░░░░░██─██░░░░░░░░░░██─██░░░░░░░░░░██─
─██░░██████████─██░░██████░░██─██████░░██████─
─██░░██─────────██░░██──██░░██─────██░░██─────
─██░░██████████─██░░██████░░██─────██░░██─────
─██░░░░░░░░░░██─██░░░░░░░░░░██─────██░░██─────
─██░░██████████─██░░██████░░██─────██░░██─────
─██░░██─────────██░░██──██░░██─────██░░██─────
─██░░██████████─██░░██──██░░██─────██░░██─────
─██░░░░░░░░░░██─██░░██──██░░██─────██░░██─────
─██████████████─██████──██████─────██████─────
──────────────────────────────────────────────"
echo " Eat Installer 1.0"
echo ""
echo "[NOTE: Try the new multi-distro installer: https://github.com/EatInstall/EatInstaller]"
echo ">>> Please enter your password if you are prompted."
auth-error() {
echo "Failed to authenticate. Ensure you are in the sudoers file. See message above."
exit 1
}
command sudo echo -n "" || auth-error
if [ -d "$(eval ~)/Eat-PKG-Manager" ]; then
echo "You already have eat installed. Did you mean to run 'eathelp' instead?"
exit 1
fi
echo "Installing dependencies..."
command sudo apt-get install python3 python-is-python3 python3-requests python3-colorama python3-pip python3-yaml git -y >> /dev/null # apt does not have a stable CLI interface. Use with caution in scripts.
echo "Downloading eat..."
command git clone https://github.com/Eatinstall/Eat.git ~/Eat-PKG-Manager >> /dev/null
echo "Creating commands..."
echo "" >> ~/.bashrc
echo "# Add eat package manager commands." >> ~/.bashrc
echo "alias eat='python ~/Eat-PKG-Manager/eat.sh'" >> ~/.bashrc
echo "alias eatinst='python ~/Eat-PKG-Manager/eat-install.py'" >> ~/.bashrc
echo "alias eathelp='python ~/Eat-PKG-Manager/man-eat.py'" >> ~/.bashrc
echo "Eat was installed. Please restart your shell to apply the changes."
echo "Then, run eathelp for information and usage."