Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Fix homebrew default bundle file (#489)
Browse files Browse the repository at this point in the history
* Formatting fixes

* Fix env var propagation
  • Loading branch information
mraerino authored Nov 3, 2020
1 parent 7e51c71 commit 27e64aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions run-build-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ install_dependencies() {
if [ -f Brewfile.netlify ] || [ ! -z "$HOMEBREW_BUNDLE_FILE" ]
then
: ${HOMEBREW_BUNDLE_FILE:="Brewfile.netlify"}
export HOMEBREW_BUNDLE_FILE
echo "Installing Homebrew dependencies from ${HOMEBREW_BUNDLE_FILE}"
brew bundle
fi
Expand All @@ -467,7 +468,7 @@ install_dependencies() {
if [ -f package.json ]
then
restore_cwd_cache node_modules "node modules"
if [ "$NETLIFY_USE_YARN" = "true" ] || ([ "$NETLIFY_USE_YARN" != "false" ] && [ -f yarn.lock ])
if [ "$NETLIFY_USE_YARN" = "true" ] || ([ "$NETLIFY_USE_YARN" != "false" ] && [ -f yarn.lock ])
then
run_yarn $YARN_VERSION
else
Expand All @@ -480,7 +481,7 @@ install_dependencies() {
then
if ! [ $(which bower) ]
then
if [ "$NETLIFY_USE_YARN" = "true" ] || ([ "$NETLIFY_USE_YARN" != "false" ] && [ -f yarn.lock ])
if [ "$NETLIFY_USE_YARN" = "true" ] || ([ "$NETLIFY_USE_YARN" != "false" ] && [ -f yarn.lock ])
then
echo "Installing bower with Yarn"
yarn add bower
Expand Down

0 comments on commit 27e64aa

Please sign in to comment.