aboutsummaryrefslogtreecommitdiff
path: root/scripts/assert-todos.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-12-24 20:24:05 -0300
committerEuAndreh <eu@euandre.org>2020-12-24 20:31:46 -0300
commit15c4774f17f67eb69a0162390b77201e7817fe94 (patch)
tree3adf4a6a62dd9fea579dd9bbcbf6cacc03c1bf98 /scripts/assert-todos.sh
parentUse MKV over webm (diff)
downloadeuandre.org-15c4774f17f67eb69a0162390b77201e7817fe94.tar.gz
euandre.org-15c4774f17f67eb69a0162390b77201e7817fe94.tar.xz
Use /bin/sh over Bash
Diffstat (limited to '')
-rwxr-xr-xscripts/assert-todos.sh9
1 files changed, 2 insertions, 7 deletions
diff --git a/scripts/assert-todos.sh b/scripts/assert-todos.sh
index 14a1b71..df7a96d 100755
--- a/scripts/assert-todos.sh
+++ b/scripts/assert-todos.sh
@@ -1,11 +1,6 @@
-#!/usr/bin/env bash
-set -Eeuo pipefail
-cd "$(dirname "${BASH_SOURCE[0]}")"
-cd ../
+#!/bin/sh -eux
-# shellcheck disable=2046
-if grep -R FIXME $(git ls-files) | \
- grep -Ev '^(vendor/|.git/|scripts/assert-todos.sh|locale/)'; then
+if git grep FIXME | grep -Ev '^(vendor/|.git/|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