Skip to content

Commit c96455f

Browse files
committed
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
1 parent 020a47b commit c96455f

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-project/spring-boot-cli/src/main/executablecontent/bin

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-cli/src/main/executablecontent/bin/spring

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ if [ ! -d "${SPRING_HOME}" ]; then
9999
exit 2
100100
fi
101101

102-
CLASSPATH=.:${SPRING_HOME}/bin
102+
CLASSPATH=${SPRING_HOME}/bin
103103
if [ -d "${SPRING_HOME}/ext" ]; then
104104
CLASSPATH=$CLASSPATH:${SPRING_HOME}/ext
105105
fi

0 commit comments

Comments
 (0)