mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
fix(tools): avoid invalid check with git diff
This commit is contained in:
parent
3afd20efe4
commit
4d78e4fc29
2 changed files with 2 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ while read file; do
|
|||
if [[ $? != 0 ]] ; then
|
||||
so_far_so_good=1
|
||||
fi
|
||||
done < <(git diff --name-only --cached --diff-filter=d | grep -E '\.qml|js|js\.spec$')
|
||||
done < <(git diff --name-only --cached --diff-filter=d | grep -E '\.(qml|js|js\.spec)$')
|
||||
|
||||
if [[ $so_far_so_good == 0 ]]; then
|
||||
printf "${GREEN}Done. No qml error found.\n"
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ if ! [ -x "$( command -v "$TEST_RUNNER" )" ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
git diff --name-only --cached --diff-filter=d | grep -Eq '\.qml|js|js\.spec$'
|
||||
git diff --name-only --cached --diff-filter=d | grep -Eq '\.(qml|js|js\.spec)$'
|
||||
if [[ $? != 0 ]] ; then
|
||||
exit 0
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue