From 636b5829a9c5c8908f4eefa71f7b653f4f1697ea Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Mon, 29 Aug 2005 10:01:20 -0500 Subject: [svn-r11309] Purpose: Bug fix. Description: Error encountered in the clean command was not passed back to calling command. Fixed it. Platforms tested: heping (where clean has no error) and sol (where clean has error). --- bin/snapshot | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/snapshot b/bin/snapshot index 5cea08d..78c66ab 100755 --- a/bin/snapshot +++ b/bin/snapshot @@ -469,9 +469,9 @@ if [ -n "$cmdclean" ]; then esac TESTDIR=${BASEDIR}/TestDir/${SRCDIRNAME} fi - # Make sure current version exists and is clean - if [ -d ${TESTDIR} ]; then - (cd ${TESTDIR} && ${MAKE} $cmdclean ) + # clean it + if (cd ${TESTDIR} && ${MAKE} $cmdclean ) then + : else errcode=$? snapshot=no -- cgit v0.12