#!/usr/bin/env bash

set -eo pipefail

([[ (-x “$(command -v brew)”) ]] && brew bundle check || brew bundle –no-lock) \

|| (echo "*** Please upgrade manually system dependencies: ***" && cat Brewfile)

export BUNDLE_GEMFILE=Gemfile.tools

bundle update –jobs=4 –retry=3 –all

yarn check || yarn upgrade