Merge pull request #9016 from zmstone/0920-chore-fix-git-diff-exclude-pattern-in-app-version-check-script

build: fix git diff exclude pattern in app version check script
This commit is contained in:
Zaiming (Stone) Shi 2022-09-27 21:43:35 +02:00 committed by GitHub
commit cd313667c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ check_apps() {
if [ "$old_app_version" = "$now_app_version" ]; then if [ "$old_app_version" = "$now_app_version" ]; then
changed_lines="$(git diff "$latest_release"...HEAD --ignore-blank-lines -G "$no_comment_re" \ changed_lines="$(git diff "$latest_release"...HEAD --ignore-blank-lines -G "$no_comment_re" \
-- "$app_path/src" \ -- "$app_path/src" \
-- ":(exclude)'$app_path/src/*.appup.src'" \ -- ":(exclude)$app_path/src/*.appup.src" \
-- "$app_path/priv" \ -- "$app_path/priv" \
-- "$app_path/c_src" | wc -l ) " -- "$app_path/c_src" | wc -l ) "
if [ "$changed_lines" -gt 0 ]; then if [ "$changed_lines" -gt 0 ]; then