1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-30 09:59:13 +08:00

test-lib: improve on previous fix

With GNU "grep" \b works but it's safer to use "egrep" which is also
POSIX rather than "grep" as not all the "grep"s out there might support \b.

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
Christian Couder
2016-01-15 16:35:03 +01:00
parent adfe197825
commit 14462092f8

View File

@ -321,7 +321,7 @@ test_should_contain() {
test_str_contains() {
find=$1
shift
echo "$@" | grep "\b$find\b" >/dev/null
echo "$@" | egrep "\b$find\b" >/dev/null
}
disk_usage() {