Skip to content

Commit

Permalink
[WFCORE-5917] Use variable expansion replacement instead of pattern r…
Browse files Browse the repository at this point in the history
…emoving to avoid duplicate jboss.server.base.dir options

Jira issue: https://issues.redhat.com/browse/WFCORE-5917
  • Loading branch information
yersan committed Jan 24, 2024
1 parent 3134974 commit a9ac274
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ fi
# clean server opts
for var in $SERVER_OPTS
do
if [ "${var#"-Djboss.server.base.dir"}" != "$var" ]; then
SERVER_OPTS=${SERVER_OPTS#"$var"}
if [ "${var//"-Djboss.server.base.dir"/}" != "${var}" ]; then
SERVER_OPTS="${SERVER_OPTS//$var/}"
fi
done

Expand Down

0 comments on commit a9ac274

Please sign in to comment.