diff --git a/extract-nightly-commit.sh b/extract-nightly-commit.sh
index c85e600d08f6cb97aa651acc90b2ba8524b38625..15e35d28d229db8abc6198e955137cdb355fc0f2 100755
--- a/extract-nightly-commit.sh
+++ b/extract-nightly-commit.sh
@@ -2,4 +2,4 @@
 
 set -e
 
-grep -e "^ENV ABCL_COMMIT" nightly/buster/Dockerfile | cut -d" " -f 3
+grep -e "^ENV ABCL_COMMIT" nightly/buster/jdk-11/Dockerfile | cut -d" " -f 3