Files
Josef Schlehofer 308a5db965 tree-wide: remove quiet mode from grep in test version checks
Remove the quiet mode flag (-q) from grep in version check commands
to ensure that their stdout output is visible.

While at it, switch the remaining regex matches (perl, sscep, awscli) to
fixed-string matching where appropriate, so that special characters in the
version string are matched literally.

For libzip, the zipcmp and zipmerge branches ran grep and then
unconditionally exited 0, so a version mismatch was never reported and
the version check override always passed.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2026-08-10 10:01:46 +02:00

30 lines
549 B
Bash

#!/bin/sh
case "$1" in
rsyslog)
rsyslogd -v 2>&1 | grep -F "$2" || {
echo "FAIL: rsyslogd -v did not print expected version '$2'"
exit 1
}
echo "rsyslogd version: OK"
[ -f /etc/rsyslog.conf ] || {
echo "FAIL: /etc/rsyslog.conf not installed"
exit 1
}
echo "rsyslog.conf: OK"
[ -x /etc/init.d/rsyslog ] || {
echo "FAIL: /etc/init.d/rsyslog not executable"
exit 1
}
echo "init script: OK"
[ -d /usr/lib/rsyslog ] || {
echo "FAIL: /usr/lib/rsyslog plugin directory not installed"
exit 1
}
echo "plugin dir: OK"
;;
esac