-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostinstall.sh
31 lines (30 loc) · 1.1 KB
/
postinstall.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
#!/bin/bash
execdir="$(pwd)"
if ! command -v smenu &> /dev/null; then
sudo pacman -Syu --needed git base-devel
git clone https://github.com/p-gen/smenu
cd smenu
chmod +x build.sh
./build.sh
sudo make install
sudo rm -rfd smenu
else
echo "smenu is already installed."
fi
cd $execdir
clear
echo -e "\e[34m\e[1m __ __ \e[0m"
sleep 0.05
echo -e "\e[34m\e[1m / | / / / / / / | / \e[0m"
sleep 0.05
echo -e "\e[35m\e[1m(___| ___ ___ (___ ( ___ ___ (___ ___ ( ( (___| ___ ___ (___ \e[0m"
sleep 0.05
echo -e "\e[35m\e[1m| | )|___ | | | )|___ | | )| | | )| )| | )\e[0m"
sleep 0.05
echo -e "\e[36m\e[1m| |__/ __/ |__ | | / __/ |__ |__/|| | | / | |__ | / \e[0m"
sleep 0.05
echo -e "\e[36m\e[1m--------------------------------------------------------------------------------------\e[0m"
cd main
chmod +x *
chosenOption=$(echo $(\ls | smenu -c ))
./$chosenOption