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

Fix kobatlw shebang for Cygwin/MinGW.

This commit is contained in:
Erik C. Thauvin 2016-07-19 09:50:53 -07:00
parent ad7fe6c48f
commit e061db2d1b

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.");