diff --git a/types/runner.go b/types/runner.go index 4d9c0ab9..6cc4fb34 100644 --- a/types/runner.go +++ b/types/runner.go @@ -27,6 +27,7 @@ type Runner struct { // Run runs the hooks for the before and after event. func (r Runner) Run(fn func() error, event string, path string, dst string, u *User) error { path = afero.FullBaseFsPath(u.Fs.(*afero.BasePathFs), path) + dst = afero.FullBaseFsPath(u.Fs.(*afero.BasePathFs), dst) err := r.do("before_"+event, path, dst, u) if err != nil { return err