install: Differentiate between macOS and Linux dependencies

This commit is contained in:
2024-11-15 20:28:35 -05:00
parent 7cc5d63a7f
commit 3363ba4324
2 changed files with 38 additions and 7 deletions

View File

@@ -1,13 +1,19 @@
#!/bin/zsh
which brew > /dev/null
if (( $? != 0 )); then
echo "First installing Homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
case `uname` in
Darwin)
which brew > /dev/null
if (( $? != 0 )); then
echo "First installing Homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
echo "Installing dependencies from Homebrew"
brew install -q $(< ./dependencies/homebrew.txt)
echo "Installing dependencies from Homebrew"
brew install -q $(< ./dependencies/homebrew.txt)
;;
Linux)
;;
esac
echo "Installing rbenv plugins"
pushd ruby/.rbenv/plugins