Skip to content

Commit

Permalink
Merge pull request #5841 from yersan/WFCORE-6531
Browse files Browse the repository at this point in the history
[WFCORE-6531] Wrap server options in double quotes
  • Loading branch information
yersan authored Jan 19, 2024
2 parents 05ad2d1 + ab3b3a2 commit 64d7074
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ do
exit 1
;;
*)
SERVER_OPTS="$SERVER_OPTS '$1'"
SERVER_OPTS="$SERVER_OPTS \"$1\""
;;
esac
shift
Expand Down Expand Up @@ -112,7 +112,7 @@ if $linux; then
for var in $HOST_CONTROLLER_OPTS
do
# Remove quotes
p=`echo $var | tr -d "'"`
p=`echo $var | tr -d "'" | tr -d "\""`
case $p in
-Djboss.domain.base.dir=*)
JBOSS_BASE_DIR=`readlink -m ${p#*=}`
Expand All @@ -134,7 +134,7 @@ if $solaris; then
for var in $HOST_CONTROLLER_OPTS
do
# Remove quotes
p=`echo $var | tr -d "'"`
p=`echo $var | tr -d "'" | tr -d "\""`
case $p in
-Djboss.domain.base.dir=*)
JBOSS_BASE_DIR=`echo $p | awk -F= '{print $2}'`
Expand All @@ -157,7 +157,7 @@ if $darwin || $other ; then
for var in $HOST_CONTROLLER_OPTS
do
# Remove quotes
p=`echo $var | tr -d "'"`
p=`echo $var | tr -d "'" | tr -d "\""`
case $p in
-Djboss.domain.base.dir=*)
JBOSS_BASE_DIR=`cd ${p#*=} ; pwd -P`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ do
shift
break;;
*)
SERVER_OPTS="$SERVER_OPTS '$1'"
SERVER_OPTS="$SERVER_OPTS \"$1\""
;;
esac
shift
Expand Down Expand Up @@ -144,7 +144,7 @@ if $linux; then
for var in $CONSOLIDATED_OPTS
do
# Remove quotes
p=`echo $var | tr -d "'"`
p=`echo $var | tr -d "'" | tr -d "\""`
case $p in
-Djboss.server.base.dir=*)
JBOSS_BASE_DIR=`readlink -m ${p#*=}`
Expand All @@ -165,8 +165,8 @@ if $solaris; then
# process the standalone options
for var in $CONSOLIDATED_OPTS
do
# Remove quotes
p=`echo $var | tr -d "'"`
# Remove quotes
p=`echo $var | tr -d "'" | tr -d "\""`
case $p in
-Djboss.server.base.dir=*)
JBOSS_BASE_DIR=`echo $p | awk -F= '{print $2}'`
Expand All @@ -189,7 +189,7 @@ if $darwin || $freebsd || $other ; then
for var in $CONSOLIDATED_OPTS
do
# Remove quotes
p=`echo $var | tr -d "'"`
p=`echo $var | tr -d "'" | tr -d "\""`
case $p in
-Djboss.server.base.dir=*)
JBOSS_BASE_DIR=`cd ${p#*=} ; pwd -P`
Expand Down

0 comments on commit 64d7074

Please sign in to comment.