Skip to content
This repository has been archived by the owner on Aug 1, 2020. It is now read-only.

Commit

Permalink
Added relevant files
Browse files Browse the repository at this point in the history
  • Loading branch information
dannys42 committed Jan 26, 2020
1 parent 39ea27a commit 229270a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin
22 changes: 22 additions & 0 deletions java/bin/java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
echo "Attemptin to run java.. forwarding to xcrun instead..."
echo " parameters: ${@}"
params=( iTMSTransporter )

while [ $# -gt 0 ]; do
if expr "$1" : '^-D.*' > /dev/null; then
echo "Ignoring '$1'"
elif expr "$1" : '^-X.*' > /dev/null; then
echo "Ignoring '$1'"
elif expr "$1" : "^-jar" > /dev/null; then
echo "Ignoring $1 $2"
shift
else
echo "Passing thru '$1'"
params+=( $1 )
fi
shift
done

echo " New parameters: ${params[@]}"
exec /usr/bin/xcrun "${params[@]}"
1 change: 1 addition & 0 deletions share

0 comments on commit 229270a

Please sign in to comment.