cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eev...@apache.org
Subject git commit: a startswith func that works for dash and bash
Date Fri, 10 Aug 2012 15:30:39 GMT
Updated Branches:
  refs/heads/trunk 80ea03f5e -> e243db435


a startswith func that works for dash and bash


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/e243db43
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/e243db43
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/e243db43

Branch: refs/heads/trunk
Commit: e243db43583233cd866f36512e2fdf59030dd53b
Parents: 80ea03f
Author: Eric Evans <eevans@apache.org>
Authored: Fri Aug 10 10:33:12 2012 -0500
Committer: Eric Evans <eevans@apache.org>
Committed: Fri Aug 10 10:33:12 2012 -0500

----------------------------------------------------------------------
 conf/cassandra-env.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/e243db43/conf/cassandra-env.sh
----------------------------------------------------------------------
diff --git a/conf/cassandra-env.sh b/conf/cassandra-env.sh
index 2928018..6ae28a0 100644
--- a/conf/cassandra-env.sh
+++ b/conf/cassandra-env.sh
@@ -177,7 +177,7 @@ if [ "x$CASSANDRA_HEAPDUMP_DIR" != "x" ]; then
 fi
 
 
-startswith () [ "${1#$2}" != "$1" ]
+startswith() { [ "${1#$2}" != "$1" ]; }
 
 if [ "`uname`" = "Linux" ] ; then
     # reduce the per-thread stack size to minimize the impact of Thrift


Mime
View raw message