Skip to content

Commit

Permalink
Fix launcher arguments transmission
Browse files Browse the repository at this point in the history
  • Loading branch information
reda-alaoui committed May 11, 2018
1 parent 4d6ccd0 commit b9511da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions launcher-override.sh
Expand Up @@ -9,15 +9,15 @@ DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"

# Preserve quotes on quoted arguments
WHITESPACE="[[:space:]]"
RECEIVED_ARGUMENTS=""
RECEIVED_ARGUMENTS=()
for arg in "$@"
do
if [[ ${arg} =~ $WHITESPACE ]]
then
arg=\"${arg}\"
fi
RECEIVED_ARGUMENTS="${RECEIVED_ARGUMENTS} ${arg}"
RECEIVED_ARGUMENTS+=("${arg}")
done

JLINK_VM_OPTIONS=
$DIR/java $JLINK_VM_OPTIONS -m com.cosium.vet/com.cosium.vet.App ${RECEIVED_ARGUMENTS}
$DIR/java $JLINK_VM_OPTIONS -m com.cosium.vet/com.cosium.vet.App "${RECEIVED_ARGUMENTS[@]}"

0 comments on commit b9511da

Please sign in to comment.