From fc00d49d11bab69e124ed047403def616ccfac38 Mon Sep 17 00:00:00 2001 From: Felix Rabe Date: Wed, 1 Jun 2011 18:21:14 +0200 Subject: [PATCH] [ -e file ] is more portable than [ -a file ] The [ -a file ] version breaks e.g. on Ubuntu, where '#!/bin/sh' scripts are executed by Dash which doesn't know [ -a file ]. --- .../src/release/tomcat/bin/setenv.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/magnolia-tomcat-bundle/src/release/tomcat/bin/setenv.sh b/magnolia-tomcat-bundle/src/release/tomcat/bin/setenv.sh index 8693874..5e7c297 100755 --- a/magnolia-tomcat-bundle/src/release/tomcat/bin/setenv.sh +++ b/magnolia-tomcat-bundle/src/release/tomcat/bin/setenv.sh @@ -10,6 +10,6 @@ export CATALINA_OPTS="$CATALINA_OPTS -XX:MaxPermSize=256m -Xms64M -Xmx512M -Djav # export JPDA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=54455,suspend=n,server=y" CURDIR=`dirname "$0"` -if [ -a "${CURDIR}/magnolia_banner.txt" ] ; then +if [ -e "${CURDIR}/magnolia_banner.txt" ] ; then cat ${CURDIR}/magnolia_banner.txt fi -- 1.7.4+GitX