From e76d703c218c09282e8988ce841f267b39dce4f0 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 9 Dec 2020 23:33:41 -0300 Subject: assert-todos.sh: Allow it to work on files with spaces on the name --- scripts/assert-todos.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/assert-todos.sh b/scripts/assert-todos.sh index c3139d1..a9c5ef9 100755 --- a/scripts/assert-todos.sh +++ b/scripts/assert-todos.sh @@ -3,8 +3,7 @@ set -Eeuo pipefail cd "$(dirname "${BASH_SOURCE[0]}")" cd ../ -# shellcheck disable=2046 -if grep -R FIXME $(git ls-files) | grep -v '^TODOs.org' | grep -v '^.git/' | grep -v '^scripts/assert-todos.sh'; then +if git grep FIXME | grep -v '^TODOs.org' | grep -v '^scripts/assert-todos.sh'; then echo "Found dangling FIXME markers on the project." echo "You should write them down properly on TODOs.org." exit 1 -- cgit v1.2.3