Skip to content

Commit

Permalink
minor change to utility script
Browse files Browse the repository at this point in the history
Double quote to prevent globbing and word splitting.
  • Loading branch information
ashitsalesforce committed Jan 11, 2024
1 parent f46a602 commit e7a2fbe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dlbuilder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ run_mvn() {
log4j_version_num=${log4j_version_num%</version>};

echo "removing JndiLookup.class from ${log4j_version_num}"
zip -q -d ${HOME}/.m2/repository/org/apache/logging/log4j/log4j-core/${log4j_version_num}/log4j-core-${log4j_version_num}.jar org/apache/logging/log4j/core/lookup/JndiLookup.class
zip -q -d ${HOME}/.m2/repository/org/apache/logging/log4j/log4j-core/${log4j_version_num}/log4j-core-${log4j_version_num}.jar org/apache/logging/log4j/core/appender/mom/JmsAppender.class
zip -q -d ${HOME}/.m2/repository/org/apache/logging/log4j/log4j-core/${log4j_version_num}/log4j-core-${log4j_version_num}.jar org/apache/logging/log4j/core/appender/db/jdbc/JdbcAppender.class
zip -q -d "${HOME}/.m2/repository/org/apache/logging/log4j/log4j-core/${log4j_version_num}/log4j-core-${log4j_version_num}.jar org/apache/logging/log4j/core/lookup/JndiLookup.class"
zip -q -d "${HOME}/.m2/repository/org/apache/logging/log4j/log4j-core/${log4j_version_num}/log4j-core-${log4j_version_num}.jar org/apache/logging/log4j/core/appender/mom/JmsAppender.class"
zip -q -d "${HOME}/.m2/repository/org/apache/logging/log4j/log4j-core/${log4j_version_num}/log4j-core-${log4j_version_num}.jar org/apache/logging/log4j/core/appender/db/jdbc/JdbcAppender.class"

# build uber jar
mvn clean package
# mvn clean package
}

#################
Expand Down

0 comments on commit e7a2fbe

Please sign in to comment.