Skip to content

Instantly share code, notes, and snippets.

Avatar

Warren James W-A-James

  • MongoDB
  • Brooklyn, NY
View GitHub Profile
@W-A-James
W-A-James / find_todos.sh
Last active December 2, 2022 20:56
Checks for todos in the current repository
View find_todos.sh
#!/usr/bin/env bash
set -e
todo_message=""
directory="."
has_ripgrep() {
which "rg" | grep "not found"
case $? in
0) # no ripgrep found