a startswith func that works for dash and bash

Patch by eevans for CASSANDRA-4494
This commit is contained in:
Eric Evans 2012-08-10 10:33:12 -05:00
parent 9fb63a2f93
commit 510689e3a4
1 changed files with 1 additions and 1 deletions

View File

@ -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