File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1717# limitations under the License.
1818# ###############################################################################
1919
20- set -x
21-
2220download_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} "
4442else
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} "
5149fi
5250
5351mkdir -p rat
5452download_rat_jar
5553
56- $RUN_RAT
54+ $RUN_RAT > rat/rat-results.txt
5755
5856if [ $? -ne 0 ]; then
5957 echo " RAT exited abnormally"
You can’t perform that action at this time.
0 commit comments