Message ID | 20221202073412.90239-1-changqing.li@windriver.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | tests/toolbox.inc.sh: update regex for getting endian | expand |
diff --git a/tests/toolbox.inc.sh b/tests/toolbox.inc.sh index 609a6c7..b1943a1 100644 --- a/tests/toolbox.inc.sh +++ b/tests/toolbox.inc.sh @@ -13,10 +13,10 @@ echo === $OUTPUTFILE === endian=`file -L /proc/$$/exe` -if expr "$endian" : '.* MSB \+\(pie executable\|executable\|shared object\).*' >&/dev/null +if expr "$endian" : '.* MSB .*\(pie executable\|executable\|shared object\).*' >&/dev/null then endian=BE -elif expr "$endian" : '.* LSB \+\(pie executable\|executable\|shared object\).*' >&/dev/null +elif expr "$endian" : '.* LSB .*\(pie executable\|executable\|shared object\).*' >&/dev/null then endian=LE else