Created
December 6, 2015 21:27
-
-
Save bearzk/f66d0dfc885ac552e003 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/bash | |
ok=false | |
echo | |
for file in $(find . -name '*.rb'); do | |
if [ $ok ]; then | |
echo -ne "\033[2A" | |
echo -ne "\033[K" | |
fi | |
echo $file; | |
ruby -c $file; | |
if [ $? -eq 0 ]; then | |
ok=true | |
else | |
ok=false | |
fi | |
done; | |
#fgrep -r "source" . | sed -E -e 's/(.*)recipes\/(.*)\.rb.*source.*\"(.*\.erb)\"/\1 \2 \3/;tx;d;:x' | sort -u | |
#echo "test" | awk <<CHECK | |
#BEGIN{FS=" "} | |
#{ | |
# print $1 | |
#} | |
#CHECK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment