fix: gum spin kann keine Bash-Funktionen ausführen

gum spin --title ... -- sudo_run pacman ...
→ gum startet sudo_run als externes Programm, nicht als Bash-Funktion
→ 'executable file not found in path'

Fix: tui_spin benutzt immer die einfache Ausführung ('▶ ... OK/FAILED'),
da gum spin mit Shell-Funktionen (sudo_run) nicht kompatibel ist.
This commit is contained in:
2026-05-27 22:27:41 +02:00
parent 547fb3e57f
commit 25d9a361d6

View File

@@ -174,9 +174,6 @@ tui_spin() {
shift shift
title="$(_strip_format "$title")" title="$(_strip_format "$title")"
if [[ "$OMERON_TUI_MODE" == "gum" ]]; then
gum spin --title "$title" -- "$@"
else
printf ' ▶ %s ... ' "$title" printf ' ▶ %s ... ' "$title"
"$@" "$@"
local rc=$? local rc=$?
@@ -186,7 +183,6 @@ tui_spin() {
printf '\033[1;31mFAILED\033[0m\n' printf '\033[1;31mFAILED\033[0m\n'
fi fi
return $rc return $rc
fi
} }
tui_header() { tui_header() {