16 lines
381 B
Plaintext
16 lines
381 B
Plaintext
|
|
#!/bin/sh
|
||
|
|
# script/bootstrap: Resolve dependencies that the application requires to run.
|
||
|
|
|
||
|
|
# Exit if any subcommand fails
|
||
|
|
set -e
|
||
|
|
|
||
|
|
# Ensure we're always running from the project root
|
||
|
|
cd "$(dirname "$0")/.."
|
||
|
|
|
||
|
|
if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ]; then
|
||
|
|
brew bundle check >/dev/null 2>&1 || {
|
||
|
|
echo "==> Installing Homebrew dependencies…"
|
||
|
|
brew bundle
|
||
|
|
}
|
||
|
|
fi
|