mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
Merge pull request #866 from pd93/fix-read-dotenv
fix: ignore empty dotfile file names
This commit is contained in:
@@ -27,6 +27,9 @@ func Dotenv(c compiler.Compiler, tf *taskfile.Taskfile, dir string) (*taskfile.V
|
||||
|
||||
for _, dotEnvPath := range tf.Dotenv {
|
||||
dotEnvPath = tr.Replace(dotEnvPath)
|
||||
if dotEnvPath == "" {
|
||||
continue
|
||||
}
|
||||
dotEnvPath = filepathext.SmartJoin(dir, dotEnvPath)
|
||||
|
||||
if _, err := os.Stat(dotEnvPath); os.IsNotExist(err) {
|
||||
|
Reference in New Issue
Block a user