Skip to content

Commit 961fb62

Browse files
committed
fix if; then
1 parent fbbdf1a commit 961fb62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ollama_bash_lib.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55

66
OLLAMA_LIB_NAME='Ollama Bash Lib'
7-
OLLAMA_LIB_VERSION='0.45.10'
7+
OLLAMA_LIB_VERSION='0.45.11'
88
OLLAMA_LIB_URL='https://github.com/attogram/ollama-bash-lib'
99
OLLAMA_LIB_DISCORD='https://discord.gg/BGQJCbYVBa'
1010
OLLAMA_LIB_LICENSE='MIT'
@@ -776,7 +776,7 @@ ollama_generate_stream() {
776776
thinking=${thinking#\"} # strip first "
777777
thinking=${thinking%\"} # strip last "
778778
if [[ -n "$thinking" ]]; then
779-
if [[ "$is_thinking" == 'false' ]] then
779+
if [[ "$is_thinking" == 'false' ]]; then
780780
# first thinking input received
781781
is_thinking=true
782782
printf '\n#### %b' "$thinking"
@@ -790,7 +790,7 @@ ollama_generate_stream() {
790790
response=${response#\"} # strip first "
791791
response=${response%\"} # strip last "
792792
if [[ -n "$response" ]]; then
793-
if [[ "$is_responding" == 'false' ]] then
793+
if [[ "$is_responding" == 'false' ]]; then
794794
# first response input received
795795
is_responding=true
796796
printf '\n\n%b' "$response"

0 commit comments

Comments
 (0)