ClusterLabs / resource-agents

Combined repository of OCF agents from the RHCS and Linux-HA projects
GNU General Public License v2.0
493 stars 579 forks source link

configure.ac: Fix bashisms #1820

Closed thesamesam closed 1 year ago

thesamesam commented 1 year ago

configure scripts need to be runnable with a POSIX-compliant /bin/sh.

On many (but not all!) systems, /bin/sh is provided by Bash, so errors like this aren't spotted. Notably Debian defaults to /bin/sh provided by dash which doesn't tolerate such bashisms as '=='.

This retains compatibility with bash.

Signed-off-by: Sam James sam@gentoo.org

knet-ci-bot commented 1 year ago

Can one of the admins verify this patch?

fabbione commented 1 year ago

ok to test

fabbione commented 1 year ago

@thesamesam good catch, thanks for the patch.

thesamesam commented 1 year ago

thanks!