Mercurial > hg > release > thermostat-1.2
changeset 1650:1b93ba34b300
Fix scripts to use valid return values
Reviewed-by: vanaltj
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2015-February/012589.html
PR2215
author | Omair Majid <omajid@redhat.com> |
---|---|
date | Thu, 05 Feb 2015 18:15:42 -0500 |
parents | 0f250b6c47e8 |
children | dd07cbe3cbbf |
files | distribution/tools/verify-archetype-functions.sh distribution/tools/verify-archetype-multimodule.sh |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/distribution/tools/verify-archetype-functions.sh Fri Jan 23 16:23:53 2015 +0100 +++ b/distribution/tools/verify-archetype-functions.sh Thu Feb 05 18:15:42 2015 -0500 @@ -46,7 +46,7 @@ if [ "x$1" == "x" -o "x$1" == "x--keepTmp" ]; then return 0 fi - return -1 + return 1 } function check_usage() {
--- a/distribution/tools/verify-archetype-multimodule.sh Fri Jan 23 16:23:53 2015 +0100 +++ b/distribution/tools/verify-archetype-multimodule.sh Thu Feb 05 18:15:42 2015 -0500 @@ -60,7 +60,7 @@ while [[ ! -f $WSS_OUTPUT || ! `grep -e "Agent id:" < $WSS_OUTPUT` ]]; do # don't wait forever if [ $TRIES -ge 20 ]; then - return -1 + return 1 fi sleep 1 ((TRIES++)) @@ -76,7 +76,7 @@ while ps -p $PID > /dev/null; do # don't wait forever if [ $TRIES -ge 15 ]; then - return -1 + return 1 fi sleep 1 ((TRIES++))