mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
java classpath hook: allow unbound $CLASSPATH
This commit is contained in:
parent
6e38def213
commit
7a77629490
|
@ -6,7 +6,7 @@ export CLASSPATH
|
||||||
addPkgToClassPath () {
|
addPkgToClassPath () {
|
||||||
local jar
|
local jar
|
||||||
for jar in $1/share/java/*.jar; do
|
for jar in $1/share/java/*.jar; do
|
||||||
export CLASSPATH=''${CLASSPATH}''${CLASSPATH:+:}''${jar}
|
export CLASSPATH=''${CLASSPATH-}''${CLASSPATH:+:}''${jar}
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue