From 601d705bbcd612400b45f02f2db88e2cc0fab9fc Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 25 Dec 2020 03:38:29 -0300 Subject: Fix sh tests --- scripts/assert-shellcheck.sh | 1 + scripts/assert-todos.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/assert-shellcheck.sh b/scripts/assert-shellcheck.sh index d07815b..70ea65a 100755 --- a/scripts/assert-shellcheck.sh +++ b/scripts/assert-shellcheck.sh @@ -1,5 +1,6 @@ #!/bin/sh -eux git ls-files -z | \ + grep -zv vendor | \ xargs -0 awk 'FNR==1 && /^#!\/bin\/sh/ { print FILENAME }' | \ xargs shellcheck diff --git a/scripts/assert-todos.sh b/scripts/assert-todos.sh index df7a96d..be3974a 100755 --- a/scripts/assert-todos.sh +++ b/scripts/assert-todos.sh @@ -1,6 +1,6 @@ #!/bin/sh -eux -if git grep FIXME | grep -Ev '^(vendor/|.git/|scripts/assert-todos.sh|locale/)'; then +if git grep FIXME | grep -Ev '^(vendor/|scripts/assert-todos.sh|locale/)'; 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