mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
pkg/util/verify-util-pkg.sh: fix shell return value comparison.
In shell scripts inside [[ .. ]] blocks, ">" is a string comparison operator. The return value check using it appears to work mostly by accident, because the only values are "0" and "1". Change to -gt operator.
This commit is contained in:
parent
dce1b88128
commit
d03b071d5b
@ -41,7 +41,7 @@ pushd "${BASH_DIR}" > /dev/null
|
|||||||
done
|
done
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
||||||
if [[ ${ret} > 0 ]]; then
|
if [[ ${ret} -gt 0 ]]; then
|
||||||
exit ${ret}
|
exit ${ret}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user