-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
30 lines (23 loc) · 774 Bytes
/
Copy pathinstall.sh
File metadata and controls
30 lines (23 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# Claude Context Kit - Unix Installer Wrapper
# Runs the Node.js installer with proper environment setup
set -e
echo "Claude Context Kit Installer"
echo "=============================="
echo ""
# Check for Node.js
if ! command -v node &> /dev/null; then
echo "Error: Node.js is required but not installed."
echo "Please install Node.js 18+ from https://nodejs.org"
exit 1
fi
# Check Node.js version
NODE_VERSION=$(node -v | cut -d'v' -f2 | cut -d'.' -f1)
if [ "$NODE_VERSION" -lt 18 ]; then
echo "Error: Node.js 18+ is required. Found version $(node -v)"
exit 1
fi
# Get the directory where this script lives
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Run the installer
node "$SCRIPT_DIR/src/installer/index.js" "$@"