Skip to content

Commit

Permalink
🩹 env variable check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufcanb committed Mar 2, 2024
1 parent 42e0ba5 commit c34f52e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ version="1.0"
base_url="https://github.com/yusufcanb/tlm/releases/download"
download_url="${base_url}/${version}/tlm_${version}_${os}_${arch}"

if [[ -v OLLAMA_HOST ]]; then
if [ -n "${OLLAMA_HOST+x}" ]; then
ollama_host=$OLLAMA_HOST
else
ollama_host="http://localhost:11434"
Expand Down

0 comments on commit c34f52e

Please sign in to comment.