Skip to content

Commit

Permalink
Remove backtrace functionality
Browse files Browse the repository at this point in the history
Re-order variables

Signed-off-by: Eric Curtin <[email protected]>
  • Loading branch information
ericcurtin committed Jul 23, 2024
1 parent be9a678 commit e2bbc77
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions ramalama
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
#!/bin/bash

print_backtrace() {
local ec="$?"
local i=0
echo "${BASH_LINENO[0]} ${BASH_COMMAND}"
echo "Backtrace (most recent call first):"
while caller $i; do
((i++))
done

exit $ec
}

available() {
command -v "$1" > /dev/null
}
Expand Down Expand Up @@ -375,17 +363,16 @@ init_rama() {
}

main() {
trap 'print_backtrace' ERR
set -o errtrace
set -eu -o pipefail

local conman_bin
local llm_store
init_rama

local conman=("$conman_bin" "--root" "$llm_store")
local conman_run
local vol
local ngl="false"
init_rama
if [ "$#" -lt 1 ]; then
usage
fi
Expand Down

0 comments on commit e2bbc77

Please sign in to comment.