From 9dab9d465d4eca9389f3160521fb3ebc40f5cdb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Zolt=C3=A1n?= Date: Mon, 4 May 2026 15:06:25 +0200 Subject: [PATCH] Minor improvements in check_certificates wrapper script. --- .metadata | Bin 22705 -> 22705 bytes tools/check_certificates | 10 +++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.metadata b/.metadata index 97998198c7b56adf9453a5be65db17705c44d10c..ff2283121d1abf0e0560157d6aff02e6374ea828 100644 GIT binary patch delta 90 zcmdnEk#XZj#tq9jc>D{#WikN4#uOjX$&CWqlLOfJCmHc>{>d?kiREv~kIcy*r9>z1 sGvJuK-c4+BzdPsT^PwD*bM?eFzvQlFk*;N1-y>l0RLtn{Qv*} delta 98 zcmdnEk#XZj#tq9jxLq>7WikN4|3@{G1%<^XJD93YGUDC*lVcK-;EAHiU^$RH2)vo> s=%X-szZ=`+es|8v=R-Lr=jw@Ve#u?U$m3Y|2CVdOzL)6c0$xXN0AC&-!2kdN diff --git a/tools/check_certificates b/tools/check_certificates index a6c2f92..6c039a3 100755 --- a/tools/check_certificates +++ b/tools/check_certificates @@ -6,6 +6,9 @@ # See https://github.com/Matty9191/ssl-cert-check for details. # # Author: Kovács Zoltán +# 2026-05-04 v0.2 +# mod: It now also checks the dependencies of the worker script. +# fix: Suppresses error output during 'which' calls. # 2026-02-16 v0.1 Initial release # Accepted environment variables and their defaults. @@ -27,12 +30,13 @@ MSG_MISSINGYML="Fatal: didn't find the docker-compose.yml file" LANG=C LC_ALL=C -# Checks the dependencies. +# Checks the dependencies (including the worker script's). TR=$(which tr 2>/dev/null) if [ -z "$TR" ]; then echo "$MSG_MISSINGDEP tr."; exit 1 ; fi -for item in basename dirname find readlink +for item in basename dirname find readlink \ + awk date grep mktemp openssl printf do - if [ -n "$(which $item)" ] + if [ -n "$(which $item 2>/dev/null)" ] then export $(echo $item | "$TR" '[:lower:]' '[:upper:]' | "$TR" '-' '_')=$(which $item) else echo "$MSG_MISSINGDEP $item." >&2; exit 1; fi done