1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27: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. // 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.");