tool: "\|" used for sed in test-secret-tool.sh is not portable

This commit is contained in:
Marcel Telka 2024-11-23 22:58:35 +01:00
parent 0be4d690e5
commit d72c757992

View File

@ -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