Merge pull request #74093 from eraserhd/java-classpath-fix

java classpath hook: allow unbound $CLASSPATH
This commit is contained in:
John Ericson 2019-11-25 09:14:28 -05:00 committed by GitHub
commit aa7c021440
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@ export CLASSPATH
addPkgToClassPath () {
local jar
for jar in $1/share/java/*.jar; do
export CLASSPATH=''${CLASSPATH}''${CLASSPATH:+:}''${jar}
export CLASSPATH=''${CLASSPATH-}''${CLASSPATH:+:}''${jar}
done
}