summaryrefslogtreecommitdiff
path: root/runner
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-04-22 19:27:25 +0200
committerewy <ewy0@protonmail.com>2026-04-22 19:29:16 +0200
commit5e1e840bbcdf8348ae62145e1b7231764fcc5a97 (patch)
treedad5d223dc95b643febde31c45beb2d68110aa9c /runner
parentf13b2bcf9a3a5ea6afeaa60c7a2e801e8e79a2c1 (diff)
update script experiment
Diffstat (limited to 'runner')
-rw-r--r--runner/shell/shell.go6
1 files changed, 3 insertions, 3 deletions
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