From c01a06e38d0b0331f459cd439ce7706ef1556e50 Mon Sep 17 00:00:00 2001 From: ewy Date: Sat, 2 May 2026 16:23:36 +0200 Subject: * fix infinite loop on not found * add bash tab completion script (will have install option in the future) * add search to tui (bound to / and ?) --- runner/shell/shell.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runner') diff --git a/runner/shell/shell.go b/runner/shell/shell.go index 7972bf0..53b4df3 100644 --- a/runner/shell/shell.go +++ b/runner/shell/shell.go @@ -64,14 +64,14 @@ func (s *shell) Wants(f fs.FS, file string, entry fs.DirEntry) (bool, error) { } func (s *shell) Find(shell string) (string, error) { + s.Lock() + defer s.Unlock() if s.Locations[shell] != "" { return s.Locations[shell], nil } if p, err := exec.LookPath(shell); err == nil { - s.Lock() s.Locations[shell] = p - s.Unlock() return shell, nil } else { return "", err -- cgit v1.3.1