1
0
Fork 0
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:
Cedric Beust 2016-07-19 10:02:25 -07:00 committed by GitHub
commit da8728f5f6

View file

@ -271,13 +271,13 @@ public class Main {
// For kobaltw: try to generate it with the correct env shebang.
//
File envFile = new File("/bin/env");
if (!envFile.exists()) {
if (!envFile.canExecute()) {
envFile = new File("/usr/bin/env");
}
String content = "";
content = "#!" + envFile.getAbsolutePath() + " bash\n";
content = "#!" + envFile.getPath() + " bash\n";
log(2, " Generating " + KOBALTW + " with shebang.");