Commit d03b071d authored by Ismo Puustinen's avatar Ismo Puustinen

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.
parent dce1b881
...@@ -41,7 +41,7 @@ pushd "${BASH_DIR}" > /dev/null ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment