Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lottadot/4b65500de97a5d42358806c5cb892405 to your computer and use it in GitHub Desktop.
Save lottadot/4b65500de97a5d42358806c5cb892405 to your computer and use it in GitHub Desktop.
[ -f Cartfile.resolved ]; then
CARTFILE_CHANGED=`git diff --stat $(GIT_PREVIOUS_SUCCESSFUL_COMMIT) $(GIT_COMMIT) | grep '\|' | awk '{print $$1}' | grep Cartfile.resolved`
if test "$(CARTFILE_CHANGED)" ; then
echo "## STEP: Updating Carthage"
carthage bootstrap --platform iOS --no-use-binaries
else
echo "## Carthage is up to date"
fi
else
echo "## STEP: Installing Carthage Dependencies"
carthage bootstrap --platform iOS --no-use-binaries
fi
@robertoschwald
Copy link

Shouldn't "carthage update" be used instead of "carthage bootstrap" when updating?
Carthage/Carthage#848 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment