-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathonekey-installer.sh
executable file
·61 lines (55 loc) · 1.31 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
# Stolen & modified from https://github.com/gnodipac886/MatebookXPro-hackintosh/blob/master/onekey_installer.sh
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/alex-spataru/HP-Spectre-4101dx-Hackintosh/archive/master.zip" -# || networkWarn
echo "Download Complete"
sleep 1
echo "Unzipping Files"
unzip -qu "master.zip"
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/HP-Spectre-4101dx-Hackintosh-master
./autoinstaller.command
;;
n)
cd
cd Downloads/HP-Spectre-4101dx-Hackintosh-master
exit
;;
*)
echo "Please press y or n lol"
echo "Exiting"
sleep 1
exit
esac
}
function main()
{
downloadFiles
sleep 2
runScript
sleep 2
}
main