Adding enforcement exit code
This commit is contained in:
parent
d7db9b5b9f
commit
e2352f203b
@ -2,8 +2,11 @@
|
|||||||
|
|
||||||
# Webserver apps directory should be short -- apps that fail this category should become their own.
|
# 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
|
for file in `find roles/WebServer/files/apps -type f`; do
|
||||||
if [[ $(wc -l "$file" | awk '{ print $1; }') -gt 10 ]]; then
|
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.
|
echo "$file" is too long to be deployed as a mini-app under the WebServer role.
|
||||||
|
retcode=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
exit $retcode
|
||||||
|
Loading…
Reference in New Issue
Block a user