Skip to content

Commit 56140e7

Browse files
author
yuzelin
committed
fix
1 parent ac31ecb commit 56140e7

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

dev/check-licensing.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ else
5050
PACKAGE_DIR="${SOURCE_PACKAGE:0:$((${#SOURCE_PACKAGE} - ${#EXTENSION}))}"
5151
tar -xf ${SOURCE_PACKAGE}
5252

53-
RUN_RAT="java -jar ${rat_jar} -d ${PACKAGE_DIR}"
53+
RUN_RAT="java -jar ${rat_jar} -e PKG-INFO -e setup.cfg -e pypaimon.egg-info/* -d ${PACKAGE_DIR}"
5454
fi
5555

5656
mkdir -p rat
@@ -65,6 +65,12 @@ fi
6565

6666
ERRORS="$(cat rat/rat-results.txt | grep -e "??")"
6767

68+
# clean
69+
rm -rf rat
70+
if [ -d "$PACKAGE_DIR" ]; then
71+
rm -rf $PACKAGE_DIR
72+
fi
73+
6874
if [[ -n "${ERRORS}" ]]; then
6975
echo "Could not find Apache license headers in the following files:"
7076
echo ${ERRORS}

0 commit comments

Comments
 (0)