1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Make kobaltw play nice when it's soft-linked (ln -s)

This commit is contained in:
Alex Czar 2015-12-25 10:48:02 +04:00
parent 231b18302e
commit 4e6db04f9f
2 changed files with 2 additions and 2 deletions

View file

@ -206,7 +206,7 @@ public class Main {
}
log(2, "Generating " + KOBALTW + (envFile.exists() ? " with shebang" : "") + ".");
content += "java -jar $(dirname $0)/kobalt/wrapper/kobalt-wrapper.jar $*\n";
content += "java -jar $(dirname \"$(readlink -f $0)\")/kobalt/wrapper/kobalt-wrapper.jar $*\n";
Files.write(filePath, content.getBytes());