From 1c4365bf77052ed9946b1aa0dba8e3b8ed61540e Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 18 Jan 2022 15:21:48 -0300 Subject: aux/workflow/assert-todos.sh: Receive files to be checked as first argument --- aux/workflow/assert-todos.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/aux/workflow/assert-todos.sh b/aux/workflow/assert-todos.sh index 991fefa..11db142 100755 --- a/aux/workflow/assert-todos.sh +++ b/aux/workflow/assert-todos.sh @@ -1,8 +1,12 @@ #!/bin/sh set -eu -if [ -e .git ] && git grep FIXME | grep -v '^TODOs.md' | - grep -v '^aux/workflow/assert-todos.sh'; then +# shellcheck disable=2086 +if [ -e .git ] && + git grep FIXME ${1:-} | + grep -v '^TODOs.md:' | + grep -v '^aux/workflow/assert-todos.sh:' +then echo "Found dangling FIXME markers on the project." >&2 echo "You should write them down properly on TODOs.md." >&2 exit 1 -- cgit v1.2.3