From 51eb63f8a10813512e539198671f2b30d4cfe37b Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Mon, 19 Mar 2018 10:19:07 +0100 Subject: Improve POSIX compliance in tests --- test/bootstrap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/bootstrap b/test/bootstrap index ea781c9..1faa749 100755 --- a/test/bootstrap +++ b/test/bootstrap @@ -85,11 +85,11 @@ initializeRepositories () { } getTagList () { - getTagList_multiline=$(git -C "${1}" show-ref --tags | sed -E 's:^.*?refs/tags/::' || true) + getTagList_multiline=$(git -C "${1}" show-ref --tags | sed -E 's:^.* refs/tags/::' || true) printf '%s' "${getTagList_multiline}" | sort -b | tr '\n' ' ' | sed -E 's:^ | $::g' } getBranchList () { - getBranchList_multiline=$(git -C "${1}" show-ref --heads | sed -E 's:^.*?refs/heads/::' || true) + getBranchList_multiline=$(git -C "${1}" show-ref --heads | sed -E 's:^.* refs/heads/::' || true) printf '%s' "${getBranchList_multiline}" | sort -b | tr '\n' ' ' | sed -E 's:^ | $::g' } -- cgit v1.2.3