Add better reporting of errors in yaml formatting test

This commit is contained in:
James Shubin
2015-09-25 02:06:14 -04:00
parent 25ad05cce3
commit 19a909001b

View File

@@ -6,6 +6,18 @@ set -o nounset
set -o pipefail
ROOT=$(dirname "${BASH_SOURCE}")/..
RUBY=`which ruby`
if [ -z $RUBY ]; then
echo "The 'ruby' utility can't be found."
exit 1
fi
$RUBY -e "require 'yaml'" 2>/dev/null || (
echo "The ruby 'yaml' library can't be found."
exit 1
)
cd "${ROOT}"
find_files() {