aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-12-09 23:33:41 -0300
committerEuAndreh <eu@euandre.org>2020-12-09 23:38:22 -0300
commite76d703c218c09282e8988ce841f267b39dce4f0 (patch)
tree426ef8ca97d1723441b0bfb464e651ad3a019607
parentRemove code comments. (diff)
downloadserver-e76d703c218c09282e8988ce841f267b39dce4f0.tar.gz
server-e76d703c218c09282e8988ce841f267b39dce4f0.tar.xz
assert-todos.sh: Allow it to work on files with spaces on the name
-rwxr-xr-xscripts/assert-todos.sh3
1 files changed, 1 insertions, 2 deletions
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