From 5e1e840bbcdf8348ae62145e1b7231764fcc5a97 Mon Sep 17 00:00:00 2001 From: ewy Date: Wed, 22 Apr 2026 19:27:25 +0200 Subject: update script experiment --- runner/shell/shell.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'runner/shell/shell.go') diff --git a/runner/shell/shell.go b/runner/shell/shell.go index 3c4bddb..a4aee9d 100644 --- a/runner/shell/shell.go +++ b/runner/shell/shell.go @@ -33,8 +33,8 @@ var Runner = &shell{ } type shell struct { + sync.Mutex Locations map[string]string - lock sync.Mutex } func (s *shell) Wants(f fs.FS, file string, entry fs.DirEntry) (bool, error) { @@ -69,9 +69,9 @@ func (s *shell) Find(shell string) (string, error) { } if p, err := exec.LookPath(shell); err == nil { - s.lock.Lock() + s.Lock() s.Locations[shell] = p - s.lock.Unlock() + s.Unlock() return shell, nil } else { return "", err -- cgit v1.3.1