mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-05-16 21:56:33 +00:00
23 lines
434 B
Bash
23 lines
434 B
Bash
#!/bin/sh
|
|
set -e
|
|
set -u
|
|
|
|
__init_ollama() {
|
|
|
|
##############
|
|
# Install ollama #
|
|
##############
|
|
|
|
WEBI_SINGLE=true
|
|
|
|
pkg_get_current_version() {
|
|
# 'ollama --version' has output in this format:
|
|
# ollama version 0.1.3
|
|
# This trims it down to just the version number:
|
|
# 0.1.3
|
|
ollama --version 2> /dev/null | head -n 1 | sed 's:^ollama version ::'
|
|
}
|
|
}
|
|
|
|
__init_ollama
|