Author: benm
Date: 2005-05-03 20:10:13 -0400 (Tue, 03 May 2005)
New Revision: 43993

Modified:
   trunk/release/packaging/shared-code.sh
Log:
fix

Modified: trunk/release/packaging/shared-code.sh
===================================================================
--- trunk/release/packaging/shared-code.sh      2005-05-03 22:36:39 UTC (rev 
43992)
+++ trunk/release/packaging/shared-code.sh      2005-05-04 00:10:13 UTC (rev 
43993)
@@ -49,9 +49,11 @@
 
 function latest_version ()
 {
-       FILES=$(find $1 -type d -maxdepth 1)
+       FILES=`(find $1 -type d -maxdepth 1) 2> /dev/null`
+       
+       [ ! "x$FILES" == x ] || exit 1
+       
        LATEST_VERSION=`(ls -vrd1  $FILES | head -n1) 2> /dev/null`
-       [ ! "x$LATEST_VERSION" == x ]
 }
 
 function rpm_query ()

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to