Return-Path: Delivered-To: apmail-gump-commits-archive@www.apache.org Received: (qmail 14007 invoked from network); 30 Jun 2005 20:08:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Jun 2005 20:08:24 -0000 Received: (qmail 98392 invoked by uid 500); 30 Jun 2005 20:08:24 -0000 Mailing-List: contact commits-help@gump.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@gump.apache.org Delivered-To: mailing list commits@gump.apache.org Received: (qmail 98379 invoked by uid 99); 30 Jun 2005 20:08:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2005 13:08:24 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 30 Jun 2005 13:08:26 -0700 Received: (qmail 14001 invoked by uid 65534); 30 Jun 2005 20:08:23 -0000 Message-ID: <20050630200823.13999.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r208672 - /gump/trunk/cron/gump.sh Date: Thu, 30 Jun 2005 20:08:22 -0000 To: commits@gump.apache.org From: ajack@apache.org X-Mailer: svnmailer-1.0.2 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: ajack Date: Thu Jun 30 13:08:21 2005 New Revision: 208672 URL: http://svn.apache.org/viewcvs?rev=208672&view=rev Log: On Solaris we are getting "no" as in "no python23 in ..." as the command to run, i.e. which is use stdout not stderr or something. Anyway, since I can't think of a portable solution allow setting GUMP_PYTHON to skip this check for 'python23' before 'python'. Modified: gump/trunk/cron/gump.sh Modified: gump/trunk/cron/gump.sh URL: http://svn.apache.org/viewcvs/gump/trunk/cron/gump.sh?rev=208672&r1=208671&r2=208672&view=diff ============================================================================== --- gump/trunk/cron/gump.sh (original) +++ gump/trunk/cron/gump.sh Thu Jun 30 13:08:21 2005 @@ -33,13 +33,15 @@ . $HOST_LOCAL_ENV fi -export GUMP_PYTHON="`which python2.3`" if [ "" == "$GUMP_PYTHON" ] ; then - export GUMP_PYTHON="`which python`" - if [ "" == "$GUMP_PYTHON" ] ; then - echo "No Python (python2.3 nor python) found in path." - exit 1 - fi + export GUMP_PYTHON="`which python2.3`" + if [ "" == "$GUMP_PYTHON" ] ; then + export GUMP_PYTHON="`which python`" + if [ "" == "$GUMP_PYTHON" ] ; then + echo "No Python (python2.3 nor python) found in path." + exit 1 + fi + fi fi #