#!/usr/bin/env sh
#
# Falcon Scan CLI Startup Script for Unix
#
# Required ENV vars:
#   JAVA_HOME - Location of Java's installation, optional if use_embedded_jre is set
#
# Optional ENV vars:
#   FALCON_SCAN_CLI_OPTS - parameters passed to the Java VM when running the Falcon Scan CLI

FALCON_SCAN_CLI_DEBUG_OPTS="-Dorg.slf4j.simpleLogger.defaultLogLevel=DEBUG -Xdebug -Dorg.slf4j.simpleLogger.defaultLogLevel=trace"

echo "Executing Falcon Scan CLI in Debug Mode"
echo "FALCON_SCAN_CLI_DEBUG_OPTS=\"-Xdebug\""

env FALCON_SCAN_CLI_OPTS="$FALCON_SCAN_CLI_OPTS" FALCON_SCAN_CLI_DEBUG_OPTS="$FALCON_SCAN_CLI_DEBUG_OPTS" "`dirname "$0"`"/falcon-scan-cli "$@"
