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>
diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh
index 9d7e74d..ccd6193 100755
--- a/tests/scripts/all.sh
+++ b/tests/scripts/all.sh
@@ -1725,12 +1725,12 @@
# Attempt to parse lsb-release to find out distribution and version. If not
# 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
case "$lsb_line" in
- "DISTRIB_ID"*) distrib_id=${lsb_line/#DISTRIB_ID=};;
- "DISTRIB_RELEASE"*) distrib_ver=${lsb_line/#DISTRIB_RELEASE=};;
+ "DISTRIB_ID"*) distrib_id=${lsb_line#DISTRIB_ID=};;
+ "DISTRIB_RELEASE"*) distrib_ver=${lsb_line#DISTRIB_RELEASE=};;
esac
done < /etc/lsb-release