Clean script file.

This commit is contained in:
Christian P. MOMON 2022-01-20 16:26:34 +01:00
parent 9fdb7beb46
commit eee023346f

View file

@ -1,19 +1,19 @@
#!/bin/bash #!/bin/bash
# Optional environment settings: # Optional environment settings:
# export LOG4J_CONFIGURATION_FILE="toto.properties" # export LOG4J_CONFIGURATION_FILE="toto.properties"
# export LOG4J_LEVEL=ERROR # export LOG4J_LEVEL=ERROR
# https://logging.apache.org/log4j/log4j-2.11.2/manual/configuration.html#System_Properties # https://logging.apache.org/log4j/log4j-2.11.2/manual/configuration.html#System_Properties
# Java check. # Java check.
javaCheck=`which java` javaCheck=`which java`
if [[ "$javaCheck" =~ ^/.* ]]; then if [[ "$javaCheck" =~ ^/.* ]]; then
#echo "Java requirement............... OK" #echo "Java requirement............... OK"
# Optional system properties: # Optional system properties:
# LOGFILE="-Dlog4j2.configurationFile=../../log4j2.properties" # LOGFILE="-Dlog4j2.configurationFile=../../log4j2.properties"
# LOGLEVEL="-Dlog4j2.level=ERROR" # LOGLEVEL="-Dlog4j2.level=ERROR"
# https://logging.apache.org/log4j/log4j-2.11.2/manual/configuration.html#System_Properties # 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 $@ java -Djava.awt.headless=true $LOGFILE $LOGLEVEL -jar "$(dirname "$0")"/statoolinfos.jar $@
else else