From d9a788b3565a066b8b91fd8991befbd044c4ebba Mon Sep 17 00:00:00 2001 From: "Issam E. Maghni" Date: Wed, 23 Dec 2020 13:27:33 -0500 Subject: bootstrap: test -a|o is not POSIX --- bootstrap | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bootstrap b/bootstrap index aae4f22..390f8f0 100755 --- a/bootstrap +++ b/bootstrap @@ -944,11 +944,10 @@ while test $# != 0; do done # Make sure the generator is valid -if test "${cmake_bootstrap_generator}" != "MSYS Makefiles" -a \ - "${cmake_bootstrap_generator}" != "Unix Makefiles" -a \ - "${cmake_bootstrap_generator}" != "Ninja"; then - cmake_error 10 "Invalid generator: ${cmake_bootstrap_generator}" -fi +case "${cmake_bootstrap_generator}" in + 'MSYS Makefiles'|'Unix Makefiles'|'Ninja') ;; + *) cmake_error 10 "Invalid generator: ${cmake_bootstrap_generator}" +esac # If verbose, display some information about bootstrap if test -n "${cmake_verbose}"; then -- cgit v0.12