From d03b071d5b2270df05bf4a6a0794c16fd77fd975 Mon Sep 17 00:00:00 2001 From: Ismo Puustinen Date: Fri, 2 Feb 2018 10:26:09 +0200 Subject: [PATCH] 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. --- pkg/util/verify-util-pkg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/verify-util-pkg.sh b/pkg/util/verify-util-pkg.sh index 755924a099..2b8d628ebc 100755 --- a/pkg/util/verify-util-pkg.sh +++ b/pkg/util/verify-util-pkg.sh @@ -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