Return-Path: X-Original-To: apmail-trafodion-commits-archive@www.apache.org Delivered-To: apmail-trafodion-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C8B9A18DAC for ; Thu, 18 Feb 2016 23:29:02 +0000 (UTC) Received: (qmail 25106 invoked by uid 500); 18 Feb 2016 23:29:02 -0000 Delivered-To: apmail-trafodion-commits-archive@trafodion.apache.org Received: (qmail 25079 invoked by uid 500); 18 Feb 2016 23:29:02 -0000 Mailing-List: contact commits-help@trafodion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: commits@trafodion.apache.org Delivered-To: mailing list commits@trafodion.apache.org Received: (qmail 25069 invoked by uid 99); 18 Feb 2016 23:29:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Feb 2016 23:29:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 4B8F61A0296 for ; Thu, 18 Feb 2016 23:29:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.549 X-Spam-Level: X-Spam-Status: No, score=-3.549 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.329] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id O_peO0U4XYXW for ; Thu, 18 Feb 2016 23:29:01 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 9A2025F1EB for ; Thu, 18 Feb 2016 23:29:00 +0000 (UTC) Received: (qmail 25034 invoked by uid 99); 18 Feb 2016 23:28:59 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Feb 2016 23:28:59 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A5456DFF67; Thu, 18 Feb 2016 23:28:59 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: amanda@apache.org To: commits@trafodion.incubator.apache.org Date: Thu, 18 Feb 2016 23:28:59 -0000 Message-Id: <2fba6464dea543629fceeb056c34992e@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/7] incubator-trafodion git commit: [[TRAFODION-1815]] Bug in sqgen Repository: incubator-trafodion Updated Branches: refs/heads/master 62d61d684 -> 766c62ea0 [[TRAFODION-1815]] Bug in sqgen Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/7b65d957 Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/7b65d957 Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/7b65d957 Branch: refs/heads/master Commit: 7b65d957d9a453226c438f785c74d1421064bd3a Parents: 71c9a72 Author: Amanda Moran Authored: Mon Feb 8 18:34:33 2016 +0000 Committer: Amanda Moran Committed: Mon Feb 8 18:34:33 2016 +0000 ---------------------------------------------------------------------- core/sqf/sql/scripts/sqgen | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/7b65d957/core/sqf/sql/scripts/sqgen ---------------------------------------------------------------------- diff --git a/core/sqf/sql/scripts/sqgen b/core/sqf/sql/scripts/sqgen index 7e3821b..46f7e68 100755 --- a/core/sqf/sql/scripts/sqgen +++ b/core/sqf/sql/scripts/sqgen @@ -118,7 +118,7 @@ fi cd $MY_SQROOT/sql/scripts # Check to make sure this is a real cluster -if [ "$node_count" -gt "1" ]; then +if [[ -n "$node_count" ]] && [[ "$node_count" -gt "1" ]]; then GetSQcnfg @@ -147,8 +147,7 @@ mkdir -p $MPI_TMPDIR # mkdir a dir for CBF data used by SQL IUS feature mkdir -p $HOME/cbfs -#If pdsh exists -if [ $node_count -gt "1" ]; then +if [[ -n "$node_count" ]] && [[ "$node_count" -gt "1" ]]; then echo echo "Creating directories on cluster nodes" @@ -227,7 +226,7 @@ if [ -f $SQESPENV_FILE ]; then fi fi -if [ $node_count -gt "1" ]; then +if [[ -n "$node_count" ]] && [[ "$node_count" -gt "1" ]]; then echo echo "Copying the generated files to all the nodes in the cluster" echo