From dd562b1efdd4efcff62f31ad1106b3559931faf1 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Fri, 24 Apr 2020 12:16:31 -0400 Subject: [PATCH] intel: properly escape sed pattern for tests The sed was incorrectly modifying e.g. "nicholasbishop" to "nicholasbop". The updated pattern will only match `.sh` at the end of the string. Signed-off-by: Nicholas Bishop Reviewed-by: Emil Velikov --- intel/tests/test-batch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intel/tests/test-batch.sh b/intel/tests/test-batch.sh index a94057ff..b85f639a 100755 --- a/intel/tests/test-batch.sh +++ b/intel/tests/test-batch.sh @@ -1,6 +1,6 @@ #!/bin/sh -TEST_FILENAME=`echo "$0" | sed 's|.sh||'` +TEST_FILENAME=`echo "$0" | sed 's|\.sh$||'` ./test_decode $TEST_FILENAME ret=$? -- 2.11.0