Skip to content

Commit bf82f6c

Browse files
committed
fix grep expression
1 parent 2b0fb5b commit bf82f6c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/pit/lib/lib-patch-v25.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ cleanAfterBumpingVersions() {
9999
## The API has significantly changed in Spring Boot 4.0.0-M3.
100100
## The entire Spring Boot auto-configuration for web applications has been restructured.
101101
updateAppLayoutAfterNavigation() {
102-
find . -name "*.java" -exec grep -l "extends AppLayout" {} + | xargs grep -L "extends AppLayoutElement" | while read file; do
102+
find . -name "*.java" -exec grep -l "extends AppLayout" {} + | while read file; do
103103
# Check if the file contains afterNavigation method
104104
if grep -q "afterNavigation()" "$file"; then
105105
[ -z "$TEST" ] && warn "updating afterNavigation method in $file" || cmd "## updating afterNavigation method in $file"
@@ -359,4 +359,4 @@ patchMapper() {
359359
# Replace IOException or Json.*Exception with Exception in the same file
360360
perl -pi -e 's/catch \((IOException|Json[A-z]*Exception)/catch (Exception/g' "$file"
361361
done
362-
}
362+
}

scripts/pit/lib/lib-patch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ moveQuarkusBomToBottom() {
100100

101101
## Find all java class files that extends AppLayouts and add @AnonymousAllowed
102102
addAnonymousAllowedToAppLayout() {
103-
find . -name "*.java" -exec grep -l "extends AppLayout" {} + | xargs grep -L "extends AppLayoutElement" | while read file; do
103+
find . -name "*.java" -exec grep -l "extends AppLayoutElement" {} + | while read file; do
104104
# Insert the annotation above the class definition if not already present
105105
grep -q "com.vaadin.flow.server.auth.AnonymousAllowed" "$file" && continue
106106
warn "adding AnonymousAllowed to $file"

0 commit comments

Comments
 (0)