diff --git a/bin/test_empty_files.sh b/bin/test_empty_files.sh new file mode 100755 index 0000000..ee7b888 --- /dev/null +++ b/bin/test_empty_files.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +EMPTY=$(find . -type f -empty) + +if [[ -n $EMPTY ]]; then + echo "The following files are empty:" + for file in ${EMPTY[@]}; do + echo ${file} + done + exit 1 +fi diff --git a/bin/test_validate.sh b/bin/test_validate.sh index d1f5a58..7a57f8a 100755 --- a/bin/test_validate.sh +++ b/bin/test_validate.sh @@ -4,6 +4,7 @@ TESTS=( extension.sh + empty_files.sh secrets.sh roles.py custom_grains.py