From c96455f7cfb1bb34a23deb7b303b035c4dc8a2c6 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 8 Jun 2020 14:40:14 +0100 Subject: [PATCH] Remove . from CLI's classpath on Unix-like platforms Previously, the spring bash script added . to the classpath but the Windows spring.bat script did not. This commit aligns the classpath of the two scripts by removing . from the classpath in the bash script. Fixes gh-19910 --- .../spring-boot-cli/src/main/executablecontent/bin/spring | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-cli/src/main/executablecontent/bin/spring b/spring-boot-project/spring-boot-cli/src/main/executablecontent/bin/spring index 87a7e2e9f4..2dbe0ab114 100755 --- a/spring-boot-project/spring-boot-cli/src/main/executablecontent/bin/spring +++ b/spring-boot-project/spring-boot-cli/src/main/executablecontent/bin/spring @@ -99,7 +99,7 @@ if [ ! -d "${SPRING_HOME}" ]; then exit 2 fi -CLASSPATH=.:${SPRING_HOME}/bin +CLASSPATH=${SPRING_HOME}/bin if [ -d "${SPRING_HOME}/ext" ]; then CLASSPATH=$CLASSPATH:${SPRING_HOME}/ext fi