From e130ce53ce87f39f4bee3288d106c681e82dbb86 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 16 Feb 2014 23:54:14 +0000 Subject: tests: avoid executing dirname(1) command Bash parameter expansion does the same thing. Signed-off-by: Sami Kerola --- tests/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/functions.sh') diff --git a/tests/functions.sh b/tests/functions.sh index f210204e2..c802136e2 100644 --- a/tests/functions.sh +++ b/tests/functions.sh @@ -117,7 +117,7 @@ function ts_init_core_subtest_env { } function ts_init_env { - local mydir=$(ts_abspath $(dirname $0)) + local mydir=$(ts_abspath ${0%/*}) LANG="POSIX" LANGUAGE="POSIX" -- cgit v1.2.3-55-g7522