Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions Crashlytics/run
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,13 @@
# Figure out where we're being called from
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

# If the first argument is specified without a dash, treat it as the Fabric API
# Key and add it as an argument.
if [ -z "$1" ] || [[ $1 == -* ]]; then
API_KEY_ARG=""
else
API_KEY_ARG="-a $1"; shift
fi
# Build up the arguments list, passing through any flags added, and quoting
# every argument in case there are spaces in any of the the paths.
ARGUMENTS=''
for i in "$@"; do
ARGUMENTS="$ARGUMENTS \"$i\""
done

# Build up the arguments list, passing through any flags added after the
# API Key
ARGUMENTS="$API_KEY_ARG $@"
VALIDATE_ARGUMENTS="$ARGUMENTS --build-phase --validate"
UPLOAD_ARGUMENTS="$ARGUMENTS --build-phase"

Expand Down