From eb35afbbf0f5c3686fe3de44090a9d9b11db2434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Doktor?= Date: Fri, 3 Feb 2017 15:06:31 +0100 Subject: [PATCH] selftests.checkall: Allow multiple arguments in our run_rc function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit So far we only executed the first argument, but we might want to execute complex cmdlines instead just one command. Let's use $* instead of $1. Signed-off-by: Lukáš Doktor --- selftests/checkall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selftests/checkall b/selftests/checkall index 73be62ad..d406748a 100755 --- a/selftests/checkall +++ b/selftests/checkall @@ -4,7 +4,7 @@ run_rc() { CHECK=$1 shift echo -e "\n\e[32mRunning '$1'\e[0m" - eval $1 + eval $* if [ $? != 0 ]; then echo -e "\e[31m$CHECK FAILED\e[0m" ERR+=("$CHECK") -- GitLab