Skip to content

Commit f76bddb

Browse files
author
yuzelin
committed
fix?
1 parent 91ed449 commit f76bddb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

dev/check-licensing.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
# limitations under the License.
1818
################################################################################
1919

20-
set -x
21-
2220
download_rat_jar () {
2321
URL="https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar"
2422
JAR="$rat_jar"
@@ -40,20 +38,20 @@ if [ -z "${SOURCE_PACKAGE}" ]; then
4038
cd ${PROJECT_ROOT}
4139
ls
4240

43-
RUN_RAT="java -jar ${rat_jar} -E ${PROJECT_ROOT}/dev/.rat-excludes -d ${PROJECT_ROOT} > rat/rat-results.txt"
41+
RUN_RAT="java -jar ${rat_jar} -E ${PROJECT_ROOT}/dev/.rat-excludes -d ${PROJECT_ROOT}"
4442
else
4543
EXTENSION='.tar.gz'
4644
# get unzipped directory
4745
PACKAGE_DIR="${SOURCE_PACKAGE:0:$((${#SOURCE_PACKAGE} - ${#EXTENSION}))}"
4846
tar -xf ${SOURCE_PACKAGE}
4947

50-
RUN_RAT="java -jar ${rat_jar} -d ${PACKAGE_DIR} > rat/rat-results.txt"
48+
RUN_RAT="java -jar ${rat_jar} -d ${PACKAGE_DIR}"
5149
fi
5250

5351
mkdir -p rat
5452
download_rat_jar
5553

56-
$RUN_RAT
54+
$RUN_RAT > rat/rat-results.txt
5755

5856
if [ $? -ne 0 ]; then
5957
echo "RAT exited abnormally"

0 commit comments

Comments
 (0)