with actual err

This commit is contained in:
Kasper Juul Hermansen 2022-10-29 22:52:57 +02:00
parent 3566226083
commit 3123986512
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23

View File

@ -32,7 +32,7 @@ func Build(builder *internal.Builder, imageTag string) error {
}
log.Println("listing files in /src/build")
dir, _ := os.ReadDir("/src/build")
dir, err := os.ReadDir("/src/build")
if err == nil {
for _, d := range dir {
log.Printf("content: %s\n", d.Name())
@ -40,7 +40,7 @@ func Build(builder *internal.Builder, imageTag string) error {
}
log.Println("listing files in /src/docker")
dir, _ == os.ReadDir("/src/docker")
dir, err = os.ReadDir("/src/docker")
if err == nil {
for _, d := range dir {
log.Printf("content: %s\n", d.Name())