mirror of
https://github.com/containers/ramalama.git
synced 2026-02-05 15:47:26 +01:00
16 lines
260 B
Bash
Executable File
16 lines
260 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
find_files() {
|
|
grep -rl "$1_CPP_SHA=" container-images/
|
|
}
|
|
|
|
sed_files() {
|
|
xargs sed -i "s/ARG $1_CPP_SHA=.*/ARG $1_CPP_SHA=$2/g"
|
|
}
|
|
|
|
find_files "LLAMA" | sed_files "LLAMA" "$1"
|
|
find_files "WHISPER" | sed_files "WHISPER" "$2"
|
|
|