getumbrel / llama-gpt

A self-hosted, offline, ChatGPT-like chatbot. Powered by Llama 2. 100% private, with no data leaving your device. New: Code Llama support!
https://apps.umbrel.com/app/llama-gpt
MIT License
10.84k stars 701 forks source link

Brackets in run.sh #139

Open eduardobb opened 11 months ago

eduardobb commented 11 months ago

with_cuda=0 while [ "$#" -gt 0 ]; do case $1 in --model) model="$2"; shift ;; --with-cuda) with_cuda=1 ;; *) echo "Unknown parameter passed: $1"; exit 1 ;; esac shift done

For me, the while condition in bash (on Windows 10) only works with [space ... space] and not with double brackets [[ ... ]]