mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
fix BusyBox sed
BusyBox sed works the same way as GNU sed
This commit is contained in:
parent
c73532c4f7
commit
6885919986
@ -275,7 +275,7 @@ autoload -U +X bashcompinit && bashcompinit
|
|||||||
# use word boundary patterns for BSD or GNU sed
|
# use word boundary patterns for BSD or GNU sed
|
||||||
LWORD='[[:<:]]'
|
LWORD='[[:<:]]'
|
||||||
RWORD='[[:>:]]'
|
RWORD='[[:>:]]'
|
||||||
if sed --help 2>&1 | grep -q GNU; then
|
if sed --help 2>&1 | grep -q 'GNU\|BusyBox'; then
|
||||||
LWORD='\<'
|
LWORD='\<'
|
||||||
RWORD='\>'
|
RWORD='\>'
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user