From 98a6fc5a3a76dfde4f41a5919d7df400c30f9297 Mon Sep 17 00:00:00 2001 From: Anton Date: Tue, 3 Sep 2019 10:44:29 +0200 Subject: [PATCH] fix BusyBox sed (#6340) BusyBox sed works the same way as GNU sed Signed-off-by: tipok --- cmd/helm/completion.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/helm/completion.go b/cmd/helm/completion.go index 310b48fd9..21d31d155 100644 --- a/cmd/helm/completion.go +++ b/cmd/helm/completion.go @@ -194,7 +194,7 @@ autoload -U +X bashcompinit && bashcompinit # use word boundary patterns for BSD or GNU sed LWORD='[[:<:]]' RWORD='[[:>:]]' -if sed --help 2>&1 | grep -q GNU; then +if sed --help 2>&1 | grep -q 'GNU\|BusyBox'; then LWORD='\<' RWORD='\>' fi