Junk

Junk Commit Details

Date:2017-01-14 10:24:57 (2 years 6 months ago)
Author:Nicola Fontana
Branch:master
Commit:26c907d62af563aacf9084dcc4edc54c5a24aa31
Parents: 7474d95c64947d3626e60cff2103a5b19523d0eb
Message:yaml-validator: fix file name bug

Changes:
Mmisc/yaml-validator (1 diff)

File differences

misc/yaml-validator
33
44
55
6
7
6
7
88
99
1010
1111
1212
1313
14
14
die() {
[ -n "$1" ] && printf "$1\n" > /dev/stderr
cat <<EOT
Usage: $0 INFILE
Basic YAML validator.
Usage: $0 FILE
Basic YAML files validator.
EOT
exit 1
}
[ -z "$1" ] && die 'No input file specified'
ruby -e "require 'yaml';puts YAML.load_file('$0')"
ruby -e "require 'yaml';puts YAML.load_file('$1')"

Archive Download the corresponding diff file

Branches