mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Reverse the readlink change (doesn't work on cygwin).
This commit is contained in:
parent
6c3c3033cf
commit
c4ce4784c8
2 changed files with 2 additions and 2 deletions
2
kobaltw
2
kobaltw
|
@ -1,2 +1,2 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
java -jar $(dirname "$(readlink -f $0)")/kobalt/wrapper/kobalt-wrapper.jar $*
|
java -jar $(dirname $0)/kobalt/wrapper/kobalt-wrapper.jar $*
|
||||||
|
|
|
@ -206,7 +206,7 @@ public class Main {
|
||||||
}
|
}
|
||||||
log(2, "Generating " + KOBALTW + (envFile.exists() ? " with shebang" : "") + ".");
|
log(2, "Generating " + KOBALTW + (envFile.exists() ? " with shebang" : "") + ".");
|
||||||
|
|
||||||
content += "java -jar $(dirname \"$(readlink -f $0)\")/kobalt/wrapper/kobalt-wrapper.jar $*\n";
|
content += "java -jar $(dirname $0)/kobalt/wrapper/kobalt-wrapper.jar $*\n";
|
||||||
|
|
||||||
Files.write(filePath, content.getBytes());
|
Files.write(filePath, content.getBytes());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue