diff options
| author | ewy <ewy0@protonmail.com> | 2026-05-02 16:23:36 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-05-02 16:23:36 +0200 |
| commit | c01a06e38d0b0331f459cd439ce7706ef1556e50 (patch) | |
| tree | 8bee63be92b6301d169be6113dfc3bbf16d37c9e /runner | |
| parent | 1e932e7015ac9d21a1f92ad57cd0c109f58bb29f (diff) | |
* 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 ?)
Diffstat (limited to 'runner')
| -rw-r--r-- | runner/shell/shell.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
