diff options
author | EuAndreh <eu@euandre.org> | 2022-01-18 16:00:35 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-01-18 17:47:11 -0300 |
commit | 6b0c0c7fe3d81d96ff579e8043a5f64dc3129cec (patch) | |
tree | 44eab7d9fd1e005577f76d732c7ffbbd56f150f4 | |
parent | Makefile: Run ShellCheck in "dev-check" target (diff) | |
download | git-permalink-6b0c0c7fe3d81d96ff579e8043a5f64dc3129cec.tar.gz git-permalink-6b0c0c7fe3d81d96ff579e8043a5f64dc3129cec.tar.xz |
aux/workflow/assert-todos.sh: Allow files to be removed from its checkings
-rwxr-xr-x | aux/workflow/assert-todos.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/aux/workflow/assert-todos.sh b/aux/workflow/assert-todos.sh index bc4907d..11db142 100755 --- a/aux/workflow/assert-todos.sh +++ b/aux/workflow/assert-todos.sh @@ -1,10 +1,14 @@ #!/bin/sh set -eu -if [ -e .git ] && git grep FIXME | grep -v '^TODOs.md' | - grep -v '^aux/workflow/assert-todos.sh'; then - echo "Found dangling FIXME markers on the project." - echo "You should write them down properly on TODOs.md." +# 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 fi |