We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f35eb9 commit 3cc540dCopy full SHA for 3cc540d
1 file changed
modules/java.sh
@@ -10,12 +10,10 @@ function java_install_bundle() {
10
rm -rf "$JRI_PATH_NEW"
11
fi
12
13
- if [ ! -f "$JRI_ZIP" ]; then
14
- echo "Downloading new Java..."
15
- wget "$JRI_URL" -O "$JRI_ZIP"
16
- else
17
- echo "Java archive found, using cached."
18
- fi
+ pushd "$(dirname $JRI_ZIP)" >/dev/null
+ echo "Downloading Java..."
+ wget -N "$JRI_URL"
+ popd >/dev/null
19
20
# extract it, rename it and point the symlink to it
21
echo "Java package acquired, installing..."
0 commit comments