mirror of
https://github.com/sst/opencode.git
synced 2025-08-25 07:24:05 +00:00
18 lines
406 B
Bash
Executable file
18 lines
406 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ]; then
|
|
brew bundle check >/dev/null 2>&1 || {
|
|
echo "==> Installing Homebrew dependencies…"
|
|
brew bundle
|
|
}
|
|
fi
|
|
|
|
echo "==> Installing Node dependencies…"
|
|
|
|
PACKAGE_MANAGER=$(command -v yarn >/dev/null 2>&1 && echo "yarn" || echo "npm")
|
|
|
|
$PACKAGE_MANAGER install
|