Fix verify-boilerplate

This commit is contained in:
derekwaynecarr
2014-08-15 11:17:00 -04:00
parent 2d7a0c336b
commit 8c07a0f524
5 changed files with 51 additions and 3 deletions

View File

@@ -16,11 +16,11 @@
# Print 1 if the file in $1 has the correct boilerplate header, 0 otherwise.
FILE=$1
EXT=${FILE#*.}
EXT=${FILE##*.}
REF_FILE="$(dirname $0)/boilerplate.${EXT}.txt"
if [[ ! -e "${REF_FILE}" ]]; then
if [ ! -e $REF_FILE ]; then
echo "1"
exit 0
fi