Skip to content

Instantly share code, notes, and snippets.

@jhsu
Created March 16, 2010 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jhsu/334268 to your computer and use it in GitHub Desktop.
Save jhsu/334268 to your computer and use it in GitHub Desktop.
#!/bin/sh
# check for config.log in javascript
count=`grep -iR "config\.log" public/javascripts/* | wc -l | awk '{print $1}'`
if [[ "$count" -ge 1 ]]; then
echo " remove any config.log() in your javascripts"
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment