mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-11-10 15:20:11 +08:00
Remove some bashisms from all.sh
Other branches use bash for all.sh, but we're still using plain sh. Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
6fc3aa004c
commit
fb4e9be5db
@ -1725,12 +1725,12 @@ support_test_cmake_out_of_source () {
|
|||||||
|
|
||||||
# Attempt to parse lsb-release to find out distribution and version. If not
|
# Attempt to parse lsb-release to find out distribution and version. If not
|
||||||
# found this should fail safe (test is supported).
|
# found this should fail safe (test is supported).
|
||||||
if [[ -f /etc/lsb-release ]]; then
|
if [ -f /etc/lsb-release ]; then
|
||||||
|
|
||||||
while read -r lsb_line; do
|
while read -r lsb_line; do
|
||||||
case "$lsb_line" in
|
case "$lsb_line" in
|
||||||
"DISTRIB_ID"*) distrib_id=${lsb_line/#DISTRIB_ID=};;
|
"DISTRIB_ID"*) distrib_id=${lsb_line#DISTRIB_ID=};;
|
||||||
"DISTRIB_RELEASE"*) distrib_ver=${lsb_line/#DISTRIB_RELEASE=};;
|
"DISTRIB_RELEASE"*) distrib_ver=${lsb_line#DISTRIB_RELEASE=};;
|
||||||
esac
|
esac
|
||||||
done < /etc/lsb-release
|
done < /etc/lsb-release
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user