diff --git a/modules/wrapper/src/main/java/com/beust/kobalt/wrapper/Main.java b/modules/wrapper/src/main/java/com/beust/kobalt/wrapper/Main.java index 96aaf764..64179098 100644 --- a/modules/wrapper/src/main/java/com/beust/kobalt/wrapper/Main.java +++ b/modules/wrapper/src/main/java/com/beust/kobalt/wrapper/Main.java @@ -268,8 +268,7 @@ public class Main { private void generateKobaltW(Path filePath) throws IOException { // - // For kobaltw: try to generate it with the correct env shebang. If this fails, - // we'll generate it without the env shebang + // For kobaltw: try to generate it with the correct env shebang. // File envFile = new File("/bin/env"); if (!envFile.exists()) { @@ -278,10 +277,9 @@ public class Main { String content = ""; - if (envFile.exists()) { - content = "#!" + envFile.getAbsolutePath() + " bash\n"; - } - log(2, " Generating " + KOBALTW + (envFile.exists() ? " with shebang" : "") + "."); + content = "#!" + envFile.getAbsolutePath() + " bash\n"; + + log(2, " Generating " + KOBALTW + " with shebang."); content += "java -jar $(dirname $0)/kobalt/wrapper/kobalt-wrapper.jar $*\n"; @@ -473,4 +471,4 @@ public class Main { return process.waitFor(); } -} \ No newline at end of file +}