-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·30 lines (27 loc) · 901 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·30 lines (27 loc) · 901 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
set -e
OS_NAME="$(uname -s)"
if ! command -v python >/dev/null 2>&1; then
echo "Python is required but was not found in PATH." >&2
exit 1
fi
if [[ "$OS_NAME" == "Linux" ]]; then
if command -v apt >/dev/null 2>&1; then
sudo apt update
sudo apt install -y libzbar0 zstd
else
echo "Package manager not supported automatically. Install libzbar manually before continuing." >&2
fi
elif [[ "$OS_NAME" == "Darwin" ]]; then
if ! command -v brew >/dev/null 2>&1; then
echo "Homebrew is required to install zbar and zstd on macOS. Install it from https://brew.sh and rerun." >&2
exit 1
fi
brew install zbar zstd
else
echo "Unsupported OS (${OS_NAME}). Install zbar and zstd manually before continuing." >&2
fi
# ... existing code ...
curl -fsSL https://ollama.com/install.sh | sh
python -m pip install --upgrade pip
python -m pip install -r requirements.txt