Skip to content

Instantly share code, notes, and snippets.

@Sam152
Created November 24, 2017 02:36
Show Gist options
  • Save Sam152/d27ce58be79f1c1ad5cae4450c884df0 to your computer and use it in GitHub Desktop.
Save Sam152/d27ce58be79f1c1ad5cae4450c884df0 to your computer and use it in GitHub Desktop.
#!/bin/bash
DIRS="./app/modules/custom/ ./app/themes/custom/"
for i in $(seq 0 4); do
echo "Looking for @expire $(date -d "-$i month" "+%b %Y")."
grep -rni "@expire $(date -d "-$i month" "+%b %Y")" $DIRS && exit 1
done
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment