Skip to content

Commit

Permalink
avoid using JAVA_HOME
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-foscato committed Dec 31, 2023
1 parent 136a164 commit 31773ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conda/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ mvn clean package
cp "$SRC_DIR/target/autocompchem-$PKG_VERSION-jar-with-dependencies.jar" "$PREFIX/lib"

echo '#!/bin/bash' > "$PREFIX/bin/autocompchem"
echo '"'$JAVA_HOME'/bin/java" -jar "'$PREFIX'/lib/autocompchem-'$PKG_VERSION'-jar-with-dependencies.jar" "$@"' >> "$PREFIX/bin/autocompchem"
echo 'java -jar "'$PREFIX'/lib/autocompchem-'$PKG_VERSION'-jar-with-dependencies.jar" "$@"' >> "$PREFIX/bin/autocompchem"

chmod +x "${PREFIX}/bin/autocompchem"

0 comments on commit 31773ca

Please sign in to comment.