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

Merge pull request #83 from AlexCzar/master

Make kobaltw play nice when it's soft-linked (`ln -s`)
This commit is contained in:
Cedric Beust 2016-01-04 15:14:29 -08:00
commit 6c3c3033cf
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());