-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebian.sh
52 lines (52 loc) · 1.16 KB
/
debian.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FIRSTTIME=true
echo "Checking for updates..."
set -e
apt update
clear
while true; do
if [ FIRSTTIME = true ]; then
echo "Repos refreshed! Select an option."
else
echo "Select an option."
fi
echo "1. Install a package"
echo "2. Remove a package"
echo "3. Install updates"
echo "4. Clean up packages"
if which flatpak; then
echo "10. Go to flatpak management"
fi
if which snap; then
echo "11. Go to snap management"
fi
echo "99. Exit"
echo "This APT Store has 500per cow powers."
read -i "Enter your option here "
FIRSTTIME=false
if [ $REPLY = 1 ]; then
echo "Enter the package(s) you wish to install."
read TARGET
apt install $TARGET
elif [ $REPLY = 2 ]; then
echo "Enter the package(s) you wish to remove."
read TARGET
echo "Do you wish to clean up after? [y/N]"
read CLEAN
apt remove $TARGET
if [ $CLEAN = y ]; then
apt autoremove
fi
elif [ $REPLY = 3 ]; then
apt upgrade
elif [ $REPLY = 4 ]; then
apt autoremove
elif [ $REPLY = 10 ] && which flatpak; then
bash flatpak.sh
elif [ $REPLY = 11 ] && which snap; then
bash snap.sh
elif [ $REPLY = 99 ]; then
exec echo "TFP APT Store is shutting down..."
elif [ $REPLY = 500 ]; then
apt moo
fi
done