-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathonekey_installer.sh
executable file
·64 lines (59 loc) · 1.4 KB
/
onekey_installer.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
53
54
55
56
57
58
59
60
61
62
63
64
function networkWarn()
{
echo "ERROR: Fail to download GitHub Files, please check your Internet connection!"
sleep 3
exit
}
function downloadFiles()
{
cd
cd Downloads
echo "------------------------------------------------------"
echo "--| Downloading GitHub files into Downloads folder |--"
echo "------------------------------------------------------"
curl -L -O "https://github.com/gnodipac886/MatebookXPro-hackintosh/archive/1.1.20.2.zip" -# || networkWarn
echo "Download Complete"
sleep 1
echo "Unzipping Files"
unzip -qu "1.1.20.2"
echo "Files unzipped"
echo "Now running autoinstallation script..."
sleep 1
}
function runScript()
{
echo "----------------------"
echo "**** Install Now? ****"
echo "----------------------"
read -p "Type y/n : " lfm_selection
case "${lfm_selection}" in
y)
cd
cd Downloads/MatebookXPro-hackintosh-1.1.20.2
./autoinstaller.command
;;
n)
cd
cd Downloads/MatebookXPro-hackintosh-1.1.20.2
echo "Please help a broke student out please :)"
echo "Thank you! Have a great day!"
sleep 3
open Help\ a\ Broke\ Student\ out/paypal.png
open Help\ a\ Broke\ Student\ out/venmo.jpg
exit
;;
*)
echo "Please press y or n lol"
echo "Exiting"
sleep 1
exit
esac
}
function main()
{
downloadFiles
sleep 2
runScript
sleep 2
}
main