You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: installjava
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ then
17
17
echo
18
18
exit
19
19
else
20
-
#Checking, whether is someone trying to cheat and simplyfy their installation it on Linux (i.e. x86 (not listad, as you can see) machine) using this script, which have no reason to work.
20
+
#Checking, whether is someone trying to cheat and simplyfy their installation it on Linux (i.e. x86 (not listad, as you can see) machine) using this script, which have no reason to work.
21
21
case`dpkg --print-architecture`in
22
22
aarch64)
23
23
archname="aarch64"; tag="v8" ;;
@@ -32,33 +32,33 @@ else
32
32
*)
33
33
ee "\e[91mERROR: Unknown architecture.";echo;exit ;;
34
34
esac
35
-
36
-
#Actual installation
35
+
36
+
#Actual installation
37
37
ee "\e[32m[*] \e[34mDownloading JDK-8 (~70Mb) for ${archname}... 🕛This will take some time, so better make a coffee.🕛"
ee "\e[32m[*] \e[34mCoping Java wrapper scripts to bin..."
52
52
#I'm not 100% sure, but getting rid of bin contnent MAY cause some issues with %JAVA_HOME%, thus it's no longer moved - copied instead. Sorry to everyone short on storage.
53
-
cp bin/*$PREFIX/bin
54
-
53
+
cp bin/*$PREFIX/bin
54
+
55
55
ee "\e[32m[*] \e[34mCleaning up temporary files..."
56
56
rm -rf $HOME/installjava
57
57
rm -rf $PREFIX/share/jdk8_${archname}.tar.gz
58
58
rm -rf $PREFIX/share/bin
59
-
59
+
60
60
echo
61
61
ee "\e[32mJava was successfully installed!\e[39m"
62
-
echo"Enjoy your new, tasty Java :D (and a coffee, if you didn't drink it yet)"
62
+
echo"Enjoy your new, tasty Java :D (and a coffee, if you didn't drink it yet)"
0 commit comments