mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-06 15:20:12 +00:00
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:
+2
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user