Commit 25cad259 authored by Ronan Abhamon's avatar Ronan Abhamon

chore(tools): do not deal with deleted files

parent 2547431f
......@@ -36,7 +36,7 @@ while read file; do
if [[ $? != 0 ]] ; then
so_far_so_good=1
fi
done < <(git diff --name-only --cached | 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 | 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment