mirror of
https://github.com/kubernetes/kubectl.git
synced 2026-06-03 22:04:23 -04:00
fix BusyBox sed
BusyBox sed works the same way as GNU sed Kubernetes-commit: 6885919986250c33af63933d95b30d1896a8dd07
This commit is contained in:
parent
33fb6c9168
commit
b096826165
1 changed files with 1 additions and 1 deletions
|
|
@ -233,7 +233,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
|
||||
|
|
|
|||
Loading…
Reference in a new issue