Fixed and split for checksum of sha256

This commit is contained in:
Sambo Chea 2021-07-14 22:03:42 +07:00
parent fe51247cef
commit df305397de

View File

@ -90,7 +90,7 @@ RUN set -eux; \
echo "OpenJDK Download from: ${BINARY_URL}"; \
curl -LfsSo /tmp/openjdk.tar.gz ${BINARY_URL}; \
curl -LfsSo /tmp/openjdk.tar.gz.sha256.txt ${BINARY_URL}.sha256.txt; \
ESUM=`cat /tmp/openjdk.tar.gz.sha256.txt`; \
ESUM=`cat /tmp/openjdk.tar.gz.sha256.txt | awk '{print $1}'`; \
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \
mkdir -p /opt/java/openjdk; \
cd /opt/java/openjdk; \