mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-04-23 07:10:53 -04:00
fix command variable exited with status 1
This commit is contained in:
parent
29b09c7fb1
commit
8bd9c994ca
1 changed files with 1 additions and 2 deletions
|
|
@ -700,8 +700,7 @@ function kube::util::ensure_dockerized {
|
|||
function kube::util::ensure-gnu-sed {
|
||||
# NOTE: the echo below is a workaround to ensure sed is executed before the grep.
|
||||
# see: https://github.com/kubernetes/kubernetes/issues/87251
|
||||
sed_help="$(LANG=C sed --help 2>&1)"
|
||||
if echo "${sed_help}" | grep -q "GNU\|BusyBox"; then
|
||||
if LANG=C sed --help 2>&1 | grep -q "GNU\|BusyBox"; then
|
||||
SED="sed"
|
||||
elif command -v gsed &>/dev/null; then
|
||||
SED="gsed"
|
||||
|
|
|
|||
Loading…
Reference in a new issue