diff --git a/tpl/os/os.go b/tpl/os/os.go index f005bd4a9..f7f9537ff 100644 --- a/tpl/os/os.go +++ b/tpl/os/os.go @@ -123,7 +123,7 @@ func (ns *Namespace) FileExists(i interface{}) (bool, error) { return false, errors.New("fileExists needs a path to a file") } - status, err := afero.Exists(ns.deps.Fs.WorkingDir, path) + status, err := afero.Exists(ns.readFileFs, path) if err != nil { return false, err }