Skip to content

Commit 7a37ff9

Browse files
committed
shellcheck: use '_' for unused loop counters in start_ollama_now
1 parent 5fa2ed1 commit 7a37ff9

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

install.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,7 @@ start_ollama_now() {
223223
nohup ollama serve >/tmp/ollama-serve.log 2>&1 &
224224
local pid=$!
225225
# Give it a moment, then probe.
226-
local tries
227-
for tries in $(seq 1 20); do
226+
for _ in $(seq 1 20); do
228227
if ollama_daemon_up; then
229228
ok "ollama serve is up (pid $pid; log: /tmp/ollama-serve.log)"
230229
return 0

run.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ start_ollama_now() {
7777
# shellcheck disable=SC2069
7878
nohup ollama serve >/tmp/ollama-serve.log 2>&1 &
7979
local pid=$!
80-
local tries
81-
for tries in $(seq 1 20); do
80+
for _ in $(seq 1 20); do
8281
if ollama_daemon_up; then
8382
ok "ollama serve is up (pid $pid; log: /tmp/ollama-serve.log)"
8483
return 0

0 commit comments

Comments
 (0)