Skip to content

Instantly share code, notes, and snippets.

@jhsu
Created March 19, 2010 20:30
Show Gist options
  • Save jhsu/338141 to your computer and use it in GitHub Desktop.
Save jhsu/338141 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 3 ]]; then
echo " remove any config.log() in your javascripts"
exit 1
fi
@jlindley
Copy link

I think it's supposed to be console.log ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment