This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new ae31f4006dc CAMEL-18118: camel-jbang - Linux terminal scripting using
pipes
ae31f4006dc is described below
commit ae31f4006dc4833b7d7968ea9f19f7d067bda56d
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue May 17 14:01:09 2022 +0200
CAMEL-18118: camel-jbang - Linux terminal scripting using pipes
---
.../java/org/apache/camel/dsl/support/RouteBuilderLoaderSupport.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dsl/camel-dsl-support/src/main/java/org/apache/camel/dsl/support/RouteBuilderLoaderSupport.java
b/dsl/camel-dsl-support/src/main/java/org/apache/camel/dsl/support/RouteBuilderLoaderSupport.java
index 5c810021c35..0b537ed0dde 100644
---
a/dsl/camel-dsl-support/src/main/java/org/apache/camel/dsl/support/RouteBuilderLoaderSupport.java
+++
b/dsl/camel-dsl-support/src/main/java/org/apache/camel/dsl/support/RouteBuilderLoaderSupport.java
@@ -154,7 +154,7 @@ public abstract class RouteBuilderLoaderSupport extends
RoutesBuilderLoaderSuppo
String line = reader.readLine();
if (line != null) {
// we need to skip first line if it starts with a special
script marker for camel-jbang in pipe mode
- if (first && line.startsWith("///usr/bin/env jbang --quiet
camel@apache/camel pipe")) {
+ if (first && line.startsWith("///usr/bin/env jbang") &&
line.contains("camel@apache/camel pipe")) {
line = ""; // use an empty line so line numbers still
matches
}
builder.append(line);