-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
52 lines (47 loc) · 1.87 KB
/
install.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
#!/bin/bash
export LC_CTYPE=en_US.UTF-8
clear
banner() {
printf " ####### ##### ## /### /\n"
printf " / ### ###### /### / ############/ \n"
printf " / ## /# / / ### / ######### \n"
printf " ## # / / / ### # / # \n"
printf " ### / / ## ## / ## \n"
printf " ## ### ## ## ## / ### \n"
printf " ### ### ## ## ## ## ## \n"
printf " ### ### /### ## / ## ## \n"
printf " ### /## / ### ## / ## ## \n"
printf " #/ /## ## ######/ ## ## \n"
printf " #/ ## ## ###### ## ## \n"
printf " # / ## ## ## # / \n"
printf " /## / ## ## ### / \n"
printf " / ########/ ## #/ ######/ \n"
printf "/ ##### ## / ### \n"
printf " \033[1;31mby Lao\033[0m \n"
printf " \033[31mLicensed under MIT\033[0m \n"
}
installation() {
if ! python3 --version; then
clear
printf "\033[31m! Script can't check Python3 version before continuing\033[0m\n"
exit 1
else
if ! git clone https://github.com/codelao/Screenshots-Parse-Tool.git; then
clear
printf "\033[31m! Script can't clone SPT repository\033[0m\n"
exit 1
else
if ! pip3 install Screenshots-Parse-Tool/.; then
clear
printf "\033[31m! Pip can't install SPT\033[0m\n"
exit 1
else
rm -rf Screenshots-Parse-Tool
printf "\033[32mSPT successfully installed.\033[0m\n"
exit 0
fi
fi
fi
}
banner
installation