mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Apply code suggestion
Avoids an error: ./script/nodenv-install.sh: line 13: brew: command not found Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
@@ -9,8 +9,13 @@ if nodenv install --skip-existing; then
|
||||
echo "Correct Node version is installed."
|
||||
else
|
||||
echo "Upgrading node-build:"
|
||||
# If homebrew (macOS) installed, try that first. Otherwise look in plugins directory.
|
||||
brew upgrade node-build || git -C "$(nodenv root)"/plugins/node-build pull
|
||||
|
||||
if command -v brew &> /dev/null; then
|
||||
# Installation via Homebrew is recommended on macOS.
|
||||
brew upgrade node-build
|
||||
else
|
||||
git -C "$(nodenv root)"/plugins/node-build pull
|
||||
fi
|
||||
|
||||
nodenv install
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user