-
-
Save lcd047/492245d9923af45fb964 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
if [ $# -eq 1 -a x"$1" = x--version ]; then | |
ruby-lint "$@" 2>&1 | \ | |
sed '/warning: parser\/current is loading parser\/ruby[0-9]*, which recognizes/d; | |
/warning: [0-9.]*-compliant syntax, but you are running [0-9.]/d' | |
else | |
exec ruby-lint "$@" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment