Adding enforcement exit code

This commit is contained in:
DarkFeather 2024-01-18 12:04:30 -06:00
parent f9a3bd789b
commit 930441ae9a
Signed by: DarkFeather
GPG Key ID: 1CC1E3F4ED06F296
1 changed files with 3 additions and 0 deletions

View File

@ -2,8 +2,11 @@
# Webserver apps directory should be short -- apps that fail this category should become their own.
retcode=0
for file in `find roles/WebServer/files/apps -type f`; do
if [[ $(wc -l "$file" | awk '{ print $1; }') -gt 10 ]]; then
echo "$file" is too long to be deployed as a mini-app under the WebServer role.
retcode=1
fi
done
exit $retcode