tests: Filter out backspace characters from manual pages in alpine

This commit is contained in:
Jakub Jelen 2023-01-12 20:45:43 +01:00 committed by Jakub Jelen
parent 2e2ab311a6
commit e63d6f9e99

View file

@ -66,6 +66,7 @@
- name: Get list of options from manual page - name: Get list of options from manual page
ansible.builtin.shell: >- ansible.builtin.shell: >-
set -o pipefail && man sshd_config \ set -o pipefail && man sshd_config \
| sed 's/\x08.//g' \
| grep -o '^ [A-Z][A-Za-z0-9]*\(.\| \)' \ | grep -o '^ [A-Z][A-Za-z0-9]*\(.\| \)' \
| grep -v "[A-Za-z0-9] $" | grep -v "[^A-Za-z0-9 ]$" \ | grep -v "[A-Za-z0-9] $" | grep -v "[^A-Za-z0-9 ]$" \
| awk '{ print $1 }' \ | awk '{ print $1 }' \