Skip to content

Commit 5f427e1

Browse files
committed
use version-specific working directory
1 parent 96303e8 commit 5f427e1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

package/synology/package/install-jdk.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,15 @@ case "$CPU_ARCH" in
2626
;;
2727
esac
2828

29-
# fetch JDK
3029
JDK_TAR="jdk-$JDK_VERSION-$JDK_ARCH.tar.gz"
3130
JDK_URL="http://download.oracle.com/otn-pub/java/jdk/$JDK_VERSION-$JDK_BUILD/$JDK_TAR"
3231

32+
33+
# enter version-specific working directory
34+
mkdir -p "jdk-$JDK_VERSION-$JDK_ARCH"
35+
cd "jdk-$JDK_VERSION-$JDK_ARCH"
36+
37+
# fetch JDK
3338
echo "Download $JDK_URL"
3439
curl -v -L -o "$JDK_TAR" --cookie "oraclelicense=accept-securebackup-cookie" "$JDK_URL"
3540

0 commit comments

Comments
 (0)