trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ama...@apache.org
Subject [1/7] incubator-trafodion git commit: [[TRAFODION-1815]] Bug in sqgen
Date Thu, 18 Feb 2016 23:28:59 GMT
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 <amanda@apache.com>
Authored: Mon Feb 8 18:34:33 2016 +0000
Committer: Amanda Moran <amanda@apache.com>
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


Mime
View raw message