Skip to content

Commit 5747501

Browse files
committed
don't warn for several #ddev-generated, the file may write #ddev-generated comment to another file
1 parent 9568d28 commit 5747501

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/scripts/update-checker.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ check_license() {
316316
fi
317317
}
318318

319-
# Check that files listed in install.yaml project_files/global_files contain exactly one #ddev-generated
319+
# Check that files listed in install.yaml project_files/global_files contain #ddev-generated
320320
check_ddev_generated() {
321321
local install_yaml="install.yaml"
322322

@@ -352,8 +352,6 @@ check_ddev_generated() {
352352
count=$(grep -c "#ddev-generated" "$dir_file" 2>/dev/null) || count=0
353353
if [[ "$count" -eq 0 ]]; then
354354
actions+=("$dir_file (in directory $entry listed in install.yaml $section) does not contain '#ddev-generated'")
355-
elif [[ "$count" -gt 1 ]]; then
356-
actions+=("$dir_file (in directory $entry listed in install.yaml $section) should contain exactly one '#ddev-generated', found $count occurrences")
357355
fi
358356
done < <(find "$entry" -type f -print0 2>/dev/null)
359357
continue

0 commit comments

Comments
 (0)