mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
Merge pull request #116286 from thockin/logging_int_cmp
bash: compare numbers numerically, not lexically
This commit is contained in:
commit
0804a86ce6
1 changed files with 2 additions and 2 deletions
|
|
@ -130,7 +130,7 @@ kube::log::usage_from_stdin() {
|
|||
# Print out some info that isn't a top level status line
|
||||
kube::log::info() {
|
||||
local V="${V:-0}"
|
||||
if [[ ${KUBE_VERBOSE} < ${V} ]]; then
|
||||
if (( KUBE_VERBOSE < V )); then
|
||||
return
|
||||
fi
|
||||
|
||||
|
|
@ -158,7 +158,7 @@ kube::log::info_from_stdin() {
|
|||
# Print a status line. Formatted to show up in a stream of output.
|
||||
kube::log::status() {
|
||||
local V="${V:-0}"
|
||||
if [[ ${KUBE_VERBOSE} < ${V} ]]; then
|
||||
if (( KUBE_VERBOSE < V )); then
|
||||
return
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue