From e99b7edb8ee5b3400d26da456dc7f620ef0dde37 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Sun, 27 Sep 2020 12:43:27 +0200 Subject: [PATCH] run-tests: pass script args verbatim to command without word splitting Needed for the upcoming 'container' command --- test/run-tests.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/run-tests.sh b/test/run-tests.sh index 410f566..24ef18d 100755 --- a/test/run-tests.sh +++ b/test/run-tests.sh @@ -157,4 +157,6 @@ if [[ $1 && $1 != build ]]; then : ${scenario:=default} fi -eval "${@:-build}" +command="${1:-build}" +shift || true +$command "$@"