-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
48 lines (41 loc) · 1.04 KB
/
setup.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
#! /bin/bash
if [[ $EUID -ne 0 ]]
then
printf 'Must be run as root, exiting!\n'
exit 1
fi
if ! command -v neofetch &> /dev/null; then
read -p "neofetch is not installed. Do you want to proceed with installation? [y/n]: " choice
case "$choice" in y|Y )
echo "Downloading neofetch..."
sudo apt-get install -y neofetch
;;
n|N )
echo "Exiting script."
exit 1
;;
* )
echo "Invalid input. Exiting script."
exit 1
;;
esac
fi
if ! command -v figlet &> /dev/null; then
read -p "figlet is not installed. Do you want to proceed with installation? [y/n]: " choice
case "$choice" in y|Y )
echo "Downloading figlet..."
sudo apt-get install -y figlet toilet
;;
n|N )
echo "Exiting script."
exit 1
;;
* )
echo "Invalid input. Exiting script."
exit 1
;;
esac
fi
echo "[+] all necessary software present"
chmod +x limon.sh
echo "[+] Limon is ready"