mirror of
https://github.com/go-task/task.git
synced 2025-11-23 22:24:45 +02:00
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 {
|
for _, dotEnvPath := range tf.Dotenv {
|
||||||
dotEnvPath = tr.Replace(dotEnvPath)
|
dotEnvPath = tr.Replace(dotEnvPath)
|
||||||
|
if dotEnvPath == "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
dotEnvPath = filepathext.SmartJoin(dir, dotEnvPath)
|
dotEnvPath = filepathext.SmartJoin(dir, dotEnvPath)
|
||||||
|
|
||||||
if _, err := os.Stat(dotEnvPath); os.IsNotExist(err) {
|
if _, err := os.Stat(dotEnvPath); os.IsNotExist(err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user