diff options
author | Erich Eckner <git@eckner.net> | 2016-09-20 13:29:10 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-09-20 13:29:10 +0200 |
commit | 5192ac94c8e37f9f462ac0a3bc83398376902953 (patch) | |
tree | 198b3fe18fbb0c1cb1b522eed6c952fbdea072b6 /crypt-expiry-check.in | |
parent | 3c47db1aadb7b09467f8fa5f7b2e4b6cbf3810af (diff) | |
download | crypt-expiry-check-5192ac94c8e37f9f462ac0a3bc83398376902953.tar.xz |
bugfix: empty emails
Diffstat (limited to 'crypt-expiry-check.in')
-rwxr-xr-x | crypt-expiry-check.in | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crypt-expiry-check.in b/crypt-expiry-check.in index b8d1a13..f634650 100755 --- a/crypt-expiry-check.in +++ b/crypt-expiry-check.in @@ -128,25 +128,25 @@ prints() MIN_DATE=$(echo $4 | ${AWK} '{ print $1, $2, $4 }') if ${NAGIOS} then - ${PRINTF} "%-35s %-17s %-8s %-11s %-4s %-30s\n" "$1:$2" "$6" "$3" "${MIN_DATE}" \|days="$5" >> ${STDOUT_TMP} + ${PRINTF} "%-35s %-17s %-8s %-11s %-4s %-30s\n" "$1:$2" "$6" "$3" "${MIN_DATE}" \|days="$5" else - ${PRINTF} "%-35s %-17s %-8s %-11s %-4s %-30s\n" "$1:$2" "$6" "$3" "${MIN_DATE}" "$5" >> ${STDOUT_TMP} + ${PRINTF} "%-35s %-17s %-8s %-11s %-4s %-30s\n" "$1:$2" "$6" "$3" "${MIN_DATE}" "$5" fi elif ${ISSUER} && ${VALIDATION} then - ${PRINTF} "%-35s %-35s %-32s %-17s\n" "$1:$2" "$7" "$8" "$6" >> ${STDOUT_TMP} + ${PRINTF} "%-35s %-35s %-32s %-17s\n" "$1:$2" "$7" "$8" "$6" elif ! ${VALIDATION} then MIN_DATE=$(echo $4 | ${AWK} '{ print $1, $2, $4 }') if ${NAGIOS} then - ${PRINTF} "%-47s %-12s %-12s %-4s %-30s\n" "$1:$2" "$3" "${MIN_DATE}" \|days="$5" >> ${STDOUT_TMP} + ${PRINTF} "%-47s %-12s %-12s %-4s %-30s\n" "$1:$2" "$3" "${MIN_DATE}" \|days="$5" else - ${PRINTF} "%-47s %-12s %-12s %-4s %-30s\n" "$1:$2" "$3" "${MIN_DATE}" "$5" >> ${STDOUT_TMP} + ${PRINTF} "%-47s %-12s %-12s %-4s %-30s\n" "$1:$2" "$3" "${MIN_DATE}" "$5" fi else - ${PRINTF} "%-35s %-35s %-32s\n" "$1:$2" "$7" "$8" >> ${STDOUT_TMP} + ${PRINTF} "%-35s %-35s %-32s\n" "$1:$2" "$7" "$8" fi } |