X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=.github%2Fworkflows%2Fscripts%2Fshow_build_failures.sh;fp=.github%2Fworkflows%2Fscripts%2Fshow_build_failures.sh;h=7b1a021155bdc1459b190d7a3925598527a9632d;hp=14f699c93d88f47f5271b0957199db60ded75a66;hb=f9653cbaac1bcb7fd15c83858f117c419ed59847;hpb=d9de5252a44e208cecaa1e2edad3d1615b84302c diff --git a/.github/workflows/scripts/show_build_failures.sh b/.github/workflows/scripts/show_build_failures.sh index 14f699c93d..7b1a021155 100755 --- a/.github/workflows/scripts/show_build_failures.sh +++ b/.github/workflows/scripts/show_build_failures.sh @@ -5,9 +5,9 @@ log_dir_path="${1:-logs}" context="${2:-10}" show_make_build_errors() { - grep -slr 'make\[[[:digit:]]\].*Error [[:digit:]]$' "$log_dir_path" | while IFS= read -r log_file; do + grep -slr 'make\[[[:digit:]]\+\].*Error [[:digit:]]\+$' "$log_dir_path" | while IFS= read -r log_file; do printf "====== Make errors from %s ======\n" "$log_file"; - grep -r -C"$context" 'make\[[[:digit:]]\].*Error [[:digit:]]$' "$log_file" ; + grep -r -C"$context" 'make\[[[:digit:]]\+\].*Error [[:digit:]]\+$' "$log_file" ; done }