Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzelin committed Dec 11, 2024
1 parent ffa6c0c commit e8c096e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dev/check-licensing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,21 @@ download_rat_jar () {
JAR="$rat_jar"

# Download rat launch jar
echo "Attempting to fetch rat\n"
echo "Attempting to fetch rat"
wget --quiet ${URL} -O "$JAR"
}

CURR_DIR=`pwd`
SOURCE_PACKAGE=${SOURCE_PACKAGE}

export RAT_VERSION=0.15
export rat_jar=rat/apache-rat-${RAT_VERSION}.jar

if [ -z "${SOURCE_PACKAGE}" ]; then
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
PROJECT_ROOT="${BASE_DIR}/../"
cd ${PROJECT_ROOT}
ls

RUN_RAT="java -jar ${rat_jar} -E ${PROJECT_ROOT}/dev/.rat-excludes -d ${PROJECT_ROOT} > rat/rat-results.txt"
else
Expand All @@ -45,8 +49,6 @@ else
fi

mkdir -p rat
export RAT_VERSION=0.15
export rat_jar=rat/apache-rat-${RAT_VERSION}.jar
download_rat_jar

$RUN_RAT
Expand All @@ -65,5 +67,3 @@ if [[ -n "${ERRORS}" ]]; then
else
echo -e "RAT checks passed."
fi


0 comments on commit e8c096e

Please sign in to comment.