From: <Wil...@nt...> - 2005-08-31 02:52:06
|
Author: WillNorris Date: 2005-08-31 09:20:59 -0700 (Wed, 31 Aug 2005) New Revision: 6216 Modified: twiki/branches/DEVELOP/test/tinderbox/rebuild-deploy-test-if-new.pl Log: Item289: oops, mixed up -x operator (not existence, executable) with -e (exists) Modified: twiki/branches/DEVELOP/test/tinderbox/rebuild-deploy-test-if-new.pl =================================================================== --- twiki/branches/DEVELOP/test/tinderbox/rebuild-deploy-test-if-new.pl 2005-08-31 14:15:23 UTC (rev 6215) +++ twiki/branches/DEVELOP/test/tinderbox/rebuild-deploy-test-if-new.pl 2005-08-31 16:20:59 UTC (rev 6216) @@ -52,8 +52,8 @@ # make easy to work as a crontab job chdir( $FindBin::Bin ); -my $buildInProgress = -x BUILD_LOCK; -exit if $buildInProgress; +# bail early (as early as possible) if we're already doing a build +exit 0 if -e BUILD_LOCK; chomp( my ( $rev, $author ) = `./latest-svn-checkin.pl` ); |