From be9a678599dd7f917948d6096eff57dbba31bdb1 Mon Sep 17 00:00:00 2001 From: Eric Curtin Date: Sat, 20 Jul 2024 04:22:47 +0100 Subject: [PATCH] Make functions smaller Signed-off-by: Eric Curtin --- ramalama | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ramalama b/ramalama index cf62e36b..323c3269 100755 --- a/ramalama +++ b/ramalama @@ -368,20 +368,24 @@ push_cli() { "${conman[@]}" push "$model_name" "$to_location" } +init_rama() { + select_container_manager + get_llm_store + mkdirs +} + main() { trap 'print_backtrace' ERR set -o errtrace set -eu -o pipefail local conman_bin - select_container_manager local llm_store - get_llm_store - mkdirs local conman=("$conman_bin" "--root" "$llm_store") local conman_run local vol local ngl="false" + init_rama if [ "$#" -lt 1 ]; then usage fi