Last active
January 22, 2019 16:24
-
-
Save lottadot/4b65500de97a5d42358806c5cb892405 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ -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 |
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
@eseay
Thanks for the updated script. Your script did actually work. Did you encounter any issues when pushing an amended patchset? I'm getting a bad object error in the "CARTFILE_CHANGED=" line.