concurrencykit: Make patch compatible with Bourne shell

The use of `>&` assumes we are using a shell that supports this syntax.

In case of running this through `sh`, we get "Syntax error: Bad fd number"

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
David Bagonyi
2023-02-01 15:55:37 +00:00
committed by Khem Raj
parent 49c1e98885
commit 2325739f66
@@ -35,9 +35,9 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
+ fi
+ assert "$CC" "not found"
+fi
+if `$CC --version | grep gcc >& /dev/null`; then
+if `$CC --version | grep gcc > /dev/null 2>&1`; then
+ COMPILER=gcc
+elif `$CC --version | grep clang >& /dev/null`; then
+elif `$CC --version | grep clang > /dev/null 2>&1`; then
+ COMPILER=clang
+else
+ COMPILER="not-found"