Skip to content

Commit

Permalink
Enforce that filenames are lower case (awslabs#806)
Browse files Browse the repository at this point in the history
* Enforce that filenames are lower case
  • Loading branch information
zflamig authored Jan 19, 2021
1 parent ee8cacc commit 789a35b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion _scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ do
exit 1
fi

# Check file name is all lower case
if [ ${f} != ${f,,} ]
then
echo Error: Exiting because file name should be all lower case
exit 1
fi

# Apply schema
pykwalify -d $f -s schema.yaml -q
done
done
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 789a35b

Please sign in to comment.