-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathinstall-goose.sh
More file actions
executable file
·37 lines (28 loc) · 925 Bytes
/
install-goose.sh
File metadata and controls
executable file
·37 lines (28 loc) · 925 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
31
32
33
34
35
36
37
#!/bin/bash
# Simplified Goose installation script
set -e
echo "=== Installing Goose AI Agent ==="
# Install dependencies
echo "Installing dependencies..."
apt-get update && apt-get install -y bzip2 libdbus-1-3
# Download and install Goose
echo "Downloading and installing Goose..."
curl -fsSL https://github.com/block/goose/releases/download/stable/download_cli.sh | bash
# Move Goose to standard location
if [ -f "$HOME/.local/bin/goose" ]; then
cp "$HOME/.local/bin/goose" /usr/local/bin/goose
chmod +x /usr/local/bin/goose
elif [ -f "/root/.local/bin/goose" ]; then
cp "/root/.local/bin/goose" /usr/local/bin/goose
chmod +x /usr/local/bin/goose
fi
# Verify installation
if ! command -v goose &> /dev/null; then
echo "ERROR: Installation failed."
exit 1
fi
echo "Goose installed: $(goose --version)"
echo "=== Installation Complete ==="
echo "Start a Goose session with: goose session"
echo ""
exit 0