feat: make dst also abs
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
This commit is contained in:
parent
215fe1d41a
commit
c624ebbc53
@ -27,6 +27,7 @@ type Runner struct {
|
|||||||
// Run runs the hooks for the before and after event.
|
// 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 {
|
func (r Runner) Run(fn func() error, event string, path string, dst string, u *User) error {
|
||||||
path = afero.FullBaseFsPath(u.Fs.(*afero.BasePathFs), path)
|
path = afero.FullBaseFsPath(u.Fs.(*afero.BasePathFs), path)
|
||||||
|
dst = afero.FullBaseFsPath(u.Fs.(*afero.BasePathFs), dst)
|
||||||
err := r.do("before_"+event, path, dst, u)
|
err := r.do("before_"+event, path, dst, u)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user