Files
Moya/scripts/bootstrap-if-needed.sh
Scott Hoyt e58083541b Use cached Carthage builds in CirclCI. (+2 squashed commits)
Squashed commits:
[b8cd377] Have circle bootstrap carthage instead of rake.
[ba37e83] Add scripts to support circle caching the Carthage directory. Ignore entire Carthage directory in git.
2017-01-02 15:56:08 -08:00

13 lines
310 B
Bash
Executable File

#!/bin/sh
RED='\033[1;31m'
GREEN='\033[1;32m'
NC='\033[0m' # No Color
if ! cmp -s Cartfile.resolved Carthage/Cartfile.resolved; then
printf "${RED}Dependencies out of date with cache.${NC} Bootstrapping...\n"
scripts/bootstrap.sh
else
printf "${GREEN}Cache up-to-date.${NC} Skipping bootstrap...\n"
fi