From 69d770bce51f93eff26577642580eeeedc976afd Mon Sep 17 00:00:00 2001
From: Vchanger <vchanger123456@163.com>
Date: Tue, 29 Nov 2022 20:53:18 +0800
Subject: [PATCH] fix java.probe build error caused by a typo in build.sh

---
 src/probes/extends/java.probe/build.sh | 2 +-
 1 files changed, 1 insertions(+), 1 deletion(-)

diff --git a/src/probes/extends/java.probe/build.sh b/src/probes/extends/java.probe/build.sh
index d02c5cb..0ea7782 100755
--- a/src/probes/extends/java.probe/build.sh
+++ b/src/probes/extends/java.probe/build.sh
@@ -10,7 +10,7 @@ function find_jars()
 	then
 		# find jdk
 		clink_path=$(echo $(ls -lrt $javac_link) | awk -F " " '{print $NF}' )
-		link_path=$(echo $(ls -lrt $link_path) | awk -F " " '{print $NF}' )
+		link_path=$(echo $(ls -lrt $clink_path) | awk -F " " '{print $NF}' )
 		jdk_path=$(dirname $(dirname $link_path))
 		dir=$jdk_path
 	else
-- 
2.23.0

