20 lines
536 B
Bash
20 lines
536 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
set -euo pipefail
|
||
|
|
|
||
|
|
BUN_VERSION="${BUN_VERSION:-bun-v1.2.23}"
|
||
|
|
export BUN_INSTALL="${BUN_INSTALL:-$HOME/.bun}"
|
||
|
|
export PATH="$BUN_INSTALL/bin:$PATH"
|
||
|
|
|
||
|
|
if ! command -v bun >/dev/null 2>&1; then
|
||
|
|
curl -fsSL https://bun.sh/install | bash -s -- "$BUN_VERSION"
|
||
|
|
fi
|
||
|
|
|
||
|
|
export PATH="$BUN_INSTALL/bin:$PATH"
|
||
|
|
|
||
|
|
if ! command -v ntt >/dev/null 2>&1; then
|
||
|
|
curl -fsSL https://raw.githubusercontent.com/wormhole-foundation/native-token-transfers/main/cli/install.sh | bash
|
||
|
|
fi
|
||
|
|
|
||
|
|
echo "bun: $(bun --version)"
|
||
|
|
echo "ntt: $(ntt --version)"
|