info_docs_tfgrid4_tech/install.sh

21 lines
354 B
Bash
Raw Normal View History

2025-01-16 15:35:26 +00:00
2025-01-16 06:42:17 +00:00
#!/bin/bash
2025-01-16 15:35:26 +00:00
set -ex
2025-01-16 06:42:17 +00:00
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${script_dir}"
echo "Docs directory: $script_dir"
2025-01-18 15:28:49 +00:00
Check if bun is installed
if ! command -v bun &> /dev/null; then
echo "Bun is not installed. Installing..."
curl -fsSL https://bun.sh/install | bash
else
echo "Bun is already installed."
fi
2025-01-16 06:42:17 +00:00
2025-01-18 15:28:49 +00:00
bun install
2025-01-16 06:42:17 +00:00