Commit 39f87e67 authored by Boris Baldassari's avatar Boris Baldassari
Browse files

Add ort config file env var in run_ort.

parent a2b136d8
......@@ -13,6 +13,8 @@
# Get the path of the scripts/ directory.
ORT_ECLIPSE_SCRIPTS=$(dirname $(readlink -f "$0"))
export ORT_CONFIG_DIR=/ort/eclipsefdn-ort/conf
# Check parameters
die () {
echo >&2 "$@"
......@@ -70,7 +72,7 @@ time ort analyze -f JSON \
-i $DIR_IN -o $DIR_OUT | tee -a $LOG
echo "* Finish analyzer at $(date +'%Y-%m-%d %H:%M')" | tee -a $LOG
echo "* Start scanner at $(date +'%Y-%m-%d %H:%M')" | tee -a $LOG
time ort scan -f JSON \
-s ScanCode \
......@@ -98,5 +100,3 @@ echo "* Finish reporter at $(date +'%Y-%m-%d %H:%M')" | tee -a $LOG
# Clean up /tmp directory, remove all directories at level 1
# that belong to us and that have not been modified for at least 12 hours
find /tmp/ -maxdepth 1 -type d -mmin +720 -exec rm -rf {} \;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment