show the size of the total and accept the max value as a valid value

This commit is contained in:
Mylloon 2023-05-03 14:23:59 +02:00
parent 6016209170
commit 4f4b51b57b
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -130,9 +130,9 @@ size:
$(TAIL) -n 1 | \
$(GREP) -o '[0-9]*K'| \
$(AWK) '{ \
if($$1 < $(MAXSIZE)) { \
print "> Taille conforme" \
if($$1 <= $(MAXSIZE)) { \
printf "> Taille conforme ("; printf $$1; print ")" \
} else { \
print "> Fichiers trop lourd" \
printf "> Fichiers trop lourd ("; printf $$1; print ")" \
} \
}'