mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Merge pull request #284 from ethauvin/master
Fix kobatlw shebang for Cygwin/MinGW.
This commit is contained in:
commit
da8728f5f6
1 changed files with 2 additions and 2 deletions
|
@ -271,13 +271,13 @@ public class Main {
|
||||||
// For kobaltw: try to generate it with the correct env shebang.
|
// For kobaltw: try to generate it with the correct env shebang.
|
||||||
//
|
//
|
||||||
File envFile = new File("/bin/env");
|
File envFile = new File("/bin/env");
|
||||||
if (!envFile.exists()) {
|
if (!envFile.canExecute()) {
|
||||||
envFile = new File("/usr/bin/env");
|
envFile = new File("/usr/bin/env");
|
||||||
}
|
}
|
||||||
|
|
||||||
String content = "";
|
String content = "";
|
||||||
|
|
||||||
content = "#!" + envFile.getAbsolutePath() + " bash\n";
|
content = "#!" + envFile.getPath() + " bash\n";
|
||||||
|
|
||||||
log(2, " Generating " + KOBALTW + " with shebang.");
|
log(2, " Generating " + KOBALTW + " with shebang.");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue