Skip to content

Commit 969e0f6

Browse files
authored
Merge pull request #1347 from containers/if-run-ramalama-exists
Only execute this if /run/ramalama exists
2 parents f1668ae + 800224e commit 969e0f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

container-images/scripts/build_llama_and_whisper.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,9 @@ clone_and_build_llama_cpp() {
255255
install_ramalama() {
256256
# link podman-remote to podman for use by RamaLama
257257
ln -sf /usr/bin/podman-remote /usr/bin/podman
258-
python3 -m pip install /run/ramalama --prefix="$1"
258+
if [ -e "/run/ramalama" ]; then
259+
python3 -m pip install /run/ramalama --prefix="$1"
260+
fi
259261
}
260262

261263
main() {

0 commit comments

Comments
 (0)