From e3344f512ec924e26824ea8d267ffac9ca675a09 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Wed, 28 Jun 2017 23:33:02 +0400 Subject: [PATCH] bug --- toinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toinst b/toinst index 701d40a..f078bc3 100755 --- a/toinst +++ b/toinst @@ -360,7 +360,7 @@ debian:*) ;; runs:*) v="${TOMCAT_PROFILE#runs:tomcat}" - if [ -z "$CATALINA_BASE" -a "$v" != "$TOMCAT_PROFILE" ]; then + if [ -z "$CATALINA_BASE" -a -n "$v" -a "$v" != "$TOMCAT_PROFILE" ]; then array_lsdirs ts /opt "apache-tomcat-$v*" CATALINA_BASE="${ts[0]}" fi