#!/bin/bash

set -e

#
# Required parameters
if [ -z "${project_dir}" ] ; then
	echo "[!] Missing required input: project_dir"
	exit 1
fi

#
# Make sure brew has Carthage installed
brew update
brew install carthage

pushd "${project_dir}"

#
# Bootstrap
carthage bootstrap --platform iOS

popd

#!/bin/bash

set -x

NO_USE_BINARIES=""

#
# Make sure brew has Carthage installed
brew update && brew install carthage

if [ $no_use_binaries == 1 ]; then
	$"NO_USE_BINARIES"="--no-use-binaries"
fi

#
# Bootstrap
carthage $"carthage_command" --platform iOS $"NO_USE_BINARIES"

Update script to use optional no use binaries flag and dynamic command
Update script to use optional no use binaries flag and dynamic command
