You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 26, 2020. It is now read-only.
I am using this project on OpenBSD target systems where bash is not installed in the default system. /bin/bash is used in two places in the code base. One is the selinux specific code and the other is in hardening.yaml on line 11. Bash is used to get the ssh version
I'd like to eliminate the dependency on bash or perhaps get the ssh version in a POSIX compliant manner.
The q command in sed can set an exit code, but not on OpenBSD. It wasn't obvious to me how to remove this dependency, otherwise I would have submitted a pull request. I imagine that Ansible, which of course is using python, would be able to do this without reliance on bash. The ksh shell on OpenBSD does not support set -o pipefail.
Not that this is helpful, but in the absence of bash, this is the exception that is raised
Thanks for raising this and thanks for the kind words!
The reliance on bash and pipefail was introduced in this PR: c6ff1d3
Mainly to make ansible-lint happy.
I'd be happy to remove the dependency on these, provided ansible-lint stays happy and of course the functionality stays the same. Making ansible-lint with an exclusion of the rule happy is fine for me.
I am using this project on OpenBSD target systems where bash is not installed in the default system.
/bin/bash
is used in two places in the code base. One is the selinux specific code and the other is in hardening.yaml on line 11. Bash is used to get the ssh versionI'd like to eliminate the dependency on bash or perhaps get the ssh version in a POSIX compliant manner.
The
q
command insed
can set an exit code, but not on OpenBSD. It wasn't obvious to me how to remove this dependency, otherwise I would have submitted a pull request. I imagine that Ansible, which of course is using python, would be able to do this without reliance on bash. Theksh
shell on OpenBSD does not supportset -o pipefail
.Not that this is helpful, but in the absence of bash, this is the exception that is raised
The text was updated successfully, but these errors were encountered: