File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ if [ -z "$BASH_VERSION" ] || ! (echo "$BASH_VERSION" | awk -F. '{exit !($1 > 3 |
2929fi
3030
3131OLLAMA_MULTIRUN_NAME=" ollama-multirun"
32- OLLAMA_MULTIRUN_VERSION=" 5.22.2 "
32+ OLLAMA_MULTIRUN_VERSION=" 5.23.0 "
3333OLLAMA_MULTIRUN_URL=" https://github.com/attogram/ollama-multirun"
3434OLLAMA_MULTIRUN_DISCORD=" https://discord.gg/BGQJCbYVBa"
3535OLLAMA_MULTIRUN_LICENSE=" MIT"
@@ -160,7 +160,8 @@ safeString() {
160160 input=${input: 0: length} # Truncate to first LENGTH characters
161161 input=$( echo " $input " | tr ' [:upper:]' ' [:lower:]' ) # Convert to lowercase
162162 input=${input// / _} # Replace spaces with underscores
163- input=$( echo " $input " | sed ' s/[^a-zA-Z0-9_]/_/g' ) # Replace non-allowed characters with underscores
163+ # input=$(echo "$input" | sed 's/[^a-zA-Z0-9_]/_/g') # Replace non-allowed characters with underscores
164+ input=$( echo " $input " | sed ' s/[^a-zA-Z0-9_]/_/g' | tr -cd ' a-zA-Z0-9_' ) # Replace non-allowed characters with underscores
164165 echo " $input " # Output the sanitized string
165166}
166167
You can’t perform that action at this time.
0 commit comments