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
Ismo Puustinen 2018-02-02 10:26:09 +02:00
parent dce1b88128
commit d03b071d5b
1 changed files with 1 additions and 1 deletions

View File

@ -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