Skip to content

Instantly share code, notes, and snippets.

@atomic-penguin
Created December 16, 2010 02:33
Show Gist options
  • Save atomic-penguin/742934 to your computer and use it in GitHub Desktop.
Save atomic-penguin/742934 to your computer and use it in GitHub Desktop.
erbcheck.sh
#!/bin/bash
if [ ! "$1" ]; then
echo -e "\nRuby ERB syntax checker."
echo -e "Usage: `basename $0` <filename>\n"
else
erubis -x -T '-' "$1" | ruby -c
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment