Files
Sourcery/Scripts/bootstrap
T
Krzysztof Zablocki 0416390dbc chore: initial commit
2016-12-11 19:42:07 +01:00

20 lines
490 B
Bash
Executable File

#!/usr/bin/env bash
# Usage: scripts/bootstrap
# Prepares git and pods integration by providing pre-commit hook and isolated CocoaPods environment via Bundler
set -eu
if [ -h .git/hooks/pre-commit ]; then
rm .git/hooks/pre-commit
fi
if [ -f .git/hooks/pre-commit ]; then
echo "A git pre-commit hook already exists. Please remove it and re-run this script."
fi
ln -s ../../scripts/pre-commit.sh .git/hooks/pre-commit
bundle install --path Vendor/bundle
bundle exec pod install