From fb4e9be5dbba13daf0c052bcee791f1c2e164501 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 14 Dec 2021 11:23:36 +0100 Subject: [PATCH] Remove some bashisms from all.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Other branches use bash for all.sh, but we're still using plain sh. Signed-off-by: Manuel Pégourié-Gonnard --- tests/scripts/all.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index 9d7e74db12..ccd6193029 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -1725,12 +1725,12 @@ support_test_cmake_out_of_source () { # 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