From c624ebbc53eb92468594a69880ee26b559970e6d Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Tue, 1 Jan 2019 13:26:42 +0000 Subject: [PATCH] feat: make dst also abs License: MIT Signed-off-by: Henrique Dias --- types/runner.go | 1 + 1 file changed, 1 insertion(+) 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