summaryrefslogtreecommitdiff
path: root/runner
diff options
context:
space:
mode:
Diffstat (limited to 'runner')
-rw-r--r--runner/shell/shell.go2
-rw-r--r--runner/shell/target.go3
2 files changed, 2 insertions, 3 deletions
diff --git a/runner/shell/shell.go b/runner/shell/shell.go
index a184182..c9d7134 100644
--- a/runner/shell/shell.go
+++ b/runner/shell/shell.go
@@ -97,7 +97,7 @@ func (s *shell) CreateTarget(fs fs.FS, src string, file string, _ fs.DirEntry) (
MyTags: model.TagsFromFilename(filename),
},
Shell: shell,
- Script: file,
+ Script: filepath.Join(src, file),
SubValue: sub,
}, nil
}
diff --git a/runner/shell/target.go b/runner/shell/target.go
index db3fcc8..0194b5d 100644
--- a/runner/shell/target.go
+++ b/runner/shell/target.go
@@ -2,7 +2,6 @@ package shell
import (
"os/exec"
- "path/filepath"
"pik/model"
"pik/runner"
)
@@ -31,5 +30,5 @@ func (s *Target) Label() string {
}
func (s *Target) Create(src *model.Source) *exec.Cmd {
- return exec.Command(s.Shell, filepath.Join(src.Path, s.Script))
+ return exec.Command(s.Shell, s.Script)
}