From d72c757992d3a2ec34c6644527319dba9171098c Mon Sep 17 00:00:00 2001 From: Marcel Telka Date: Sat, 23 Nov 2024 22:58:35 +0100 Subject: [PATCH] tool: "\|" used for sed in test-secret-tool.sh is not portable --- tool/test-secret-tool.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tool/test-secret-tool.sh b/tool/test-secret-tool.sh index 9f4a7b7..c3f8d87 100755 --- a/tool/test-secret-tool.sh +++ b/tool/test-secret-tool.sh @@ -62,7 +62,7 @@ secret = test2 EOF -${SECRET_TOOL} search foo bar | sed '/^created\|^modified/d' > search.out +${SECRET_TOOL} search foo bar | sed -E '/^created|^modified/d' > search.out if test $? -ne 0; then echo "not ok 4 /secret-tool/search" exit 1 @@ -90,7 +90,7 @@ secret = test1 EOF -${SECRET_TOOL} search foo bar | sed '/^created\|^modified/d' > search-after-clear.out +${SECRET_TOOL} search foo bar | sed -E '/^created|^modified/d' > search-after-clear.out if test $? -ne 0; then echo "not ok 6 /secret-tool/search-after-clear" exit 1