mirror of https://github.com/k3s-io/k3s
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.pull/8/head
parent
dce1b88128
commit
d03b071d5b
|
@ -41,7 +41,7 @@ pushd "${BASH_DIR}" > /dev/null
|
|||
done
|
||||
popd > /dev/null
|
||||
|
||||
if [[ ${ret} > 0 ]]; then
|
||||
if [[ ${ret} -gt 0 ]]; then
|
||||
exit ${ret}
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue