-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-oblogout.sh
executable file
·40 lines (33 loc) · 1.25 KB
/
install-oblogout.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
#!/usr/bin/env bash
selfdestruct() {
echo "THE INSTALLER HAS ENCOUNTERED A FATAL FAILURE"
echo "please READ the error message and fix it urself"
echo "self destructing..."
exit 1
}
echo "o hi welcom to OBLOGOUT INSTALLER"
echo "this is version 1 point 2 point 1 of the installer (not the program)"
echo "instal oblogout??? (y or n)"
read -p "???? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo "IM INSTALLIG OBLOGOUT RIGHT NOW!!!!!!!"
if [ ! -d "$HOME/oblogout-py3" ]; then
echo "STEP 1: clone oblogout"
echo "it will be cloned in your home folder"
git clone https://github.com/trizen/oblogout-py3 "$HOME"/oblogout-py3 || selfdestruct
echo "ok i cloned it"
else
echo "attention rightn ow: oblogout has already been cloned"
fi
echo "STEP 2: instaling (you may nejed to enter your password)"
cd "$HOME"/oblogout-py3 || selfdestruct
sudo ./setup.py install || selfdestruct
echo "STEP 3: installling themes (so that the buttons show up properly i dont know why it doesnt do it by default)"
cd "$HOME"/oblogout-py3 || selfdestruct
cp ./data/themes/* "$HOME"/.themes -r
echo "INSTALLATIN HAS SUCCESSFULED!"
echo "you can now use roblogout !!!"
else
echo "ok bai"
fi