From 8bbdb7b5a7f2462cc32bc26e6ad505140b2ad094 Mon Sep 17 00:00:00 2001 From: sebres Date: Mon, 27 May 2024 15:32:17 +0200 Subject: [PATCH] GHA: output current preferred encoding of fail2ban --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 94171ebf..76c0d8d0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -79,7 +79,7 @@ jobs: cd "$GITHUB_WORKSPACE" _debug() { echo -n "$1 "; err=$("${@:2}" 2>&1) && echo 'OK' || echo -e "FAIL\n$err"; } # (debug) output current preferred encoding: - _debug 'Encodings:' python -c 'import locale, sys; from fail2ban.helpers import PREFER_ENC; print(PREFER_ENC, locale.getpreferredencoding(), (sys.stdout and sys.stdout.encoding))' + echo 'Encodings:' $(python -c 'import locale, sys; from fail2ban.helpers import PREFER_ENC; print(PREFER_ENC, locale.getpreferredencoding(), (sys.stdout and sys.stdout.encoding))') # (debug) backend availabilities: echo 'Backends:' _debug '- systemd:' python -c 'from fail2ban.server.filtersystemd import FilterSystemd'