From eee023346fc980a6c10a39339a153eb85d0ded51 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 20 Jan 2022 16:26:34 +0100 Subject: [PATCH] Clean script file. --- resources/scripts/statoolinfos.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/resources/scripts/statoolinfos.sh b/resources/scripts/statoolinfos.sh index 03e9d0d..538efe7 100755 --- a/resources/scripts/statoolinfos.sh +++ b/resources/scripts/statoolinfos.sh @@ -1,19 +1,19 @@ -#!/bin/bash +#!/bin/bash -# Optional environment settings: -# export LOG4J_CONFIGURATION_FILE="toto.properties" -# export LOG4J_LEVEL=ERROR -# https://logging.apache.org/log4j/log4j-2.11.2/manual/configuration.html#System_Properties +# Optional environment settings: +# export LOG4J_CONFIGURATION_FILE="toto.properties" +# export LOG4J_LEVEL=ERROR +# https://logging.apache.org/log4j/log4j-2.11.2/manual/configuration.html#System_Properties -# Java check. +# Java check. javaCheck=`which java` if [[ "$javaCheck" =~ ^/.* ]]; then - #echo "Java requirement............... OK" - - # Optional system properties: - # LOGFILE="-Dlog4j2.configurationFile=../../log4j2.properties" - # LOGLEVEL="-Dlog4j2.level=ERROR" - # https://logging.apache.org/log4j/log4j-2.11.2/manual/configuration.html#System_Properties + #echo "Java requirement............... OK" + + # Optional system properties: + # LOGFILE="-Dlog4j2.configurationFile=../../log4j2.properties" + # LOGLEVEL="-Dlog4j2.level=ERROR" + # https://logging.apache.org/log4j/log4j-2.11.2/manual/configuration.html#System_Properties java -Djava.awt.headless=true $LOGFILE $LOGLEVEL -jar "$(dirname "$0")"/statoolinfos.jar $@ else