From fc87f183f9e9cb8bfeda2a2303909a02188c555b Mon Sep 17 00:00:00 2001 From: SATOH Fumiyasu Date: Fri, 28 Jun 2019 18:18:00 +0900 Subject: [PATCH] Portability fix: Avoid the use of sed -r Legacy sed does not support -r option (use extended regular expressions) --- rts.tests/supervise-downtime.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rts.tests/supervise-downtime.sh b/rts.tests/supervise-downtime.sh index e3b5af7..de7fde4 100644 --- a/rts.tests/supervise-downtime.sh +++ b/rts.tests/supervise-downtime.sh @@ -20,8 +20,8 @@ svpid=$! waitok test.sv svstat test.sv \ -| sed -r 's, \(.+\),,' \ -| sed -r 's, ([0-9]|1[0-9]) second.+$, ok,' +| sed 's, (..*),,' \ +| sed 's! 1\{0,1\}[0-9] second..*$! ok!' kill $svpid wait