From a5ab9e488522b8fb74a6eadc4a7acf9199e782c4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 6 Jan 2017 19:49:23 +0000 Subject: Shell bug: avoid local=$(....) as it defeats set -e Signed-off-by: Ian Jackson --- tests/lib-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/lib-core') diff --git a/tests/lib-core b/tests/lib-core index cbfda46..6cdffeb 100644 --- a/tests/lib-core +++ b/tests/lib-core @@ -27,7 +27,7 @@ t-set-using-tmp () { } t-filter-out-git-hyphen-dir () { - local pathent=$(type -p git-rev-parse ||:) + local pathent; pathent=$(type -p git-rev-parse ||:) case "$pathent" in '') return ;; esac pathent=${pathent%/*} local path=":$PATH:" -- cgit v1.2.3