We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6ec3ea8 + 6d3a18b commit 5cc572fCopy full SHA for 5cc572f
hack/lib/util.sh
@@ -700,7 +700,8 @@ function kube::util::ensure_dockerized {
700
function kube::util::ensure-gnu-sed {
701
# NOTE: the echo below is a workaround to ensure sed is executed before the grep.
702
# see: https://github.com/kubernetes/kubernetes/issues/87251
703
- if LANG=C sed --help 2>&1 | grep -q "GNU\|BusyBox"; then
+ sed_help="$(LANG=C sed --help 2>&1 || true)"
704
+ if echo "${sed_help}" | grep -q "GNU\|BusyBox"; then
705
SED="sed"
706
elif command -v gsed &>/dev/null; then
707
SED="gsed"
0 commit comments