with actual err
This commit is contained in:
parent
3566226083
commit
3123986512
@ -32,7 +32,7 @@ func Build(builder *internal.Builder, imageTag string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
log.Println("listing files in /src/build")
|
log.Println("listing files in /src/build")
|
||||||
dir, _ := os.ReadDir("/src/build")
|
dir, err := os.ReadDir("/src/build")
|
||||||
if err == nil {
|
if err == nil {
|
||||||
for _, d := range dir {
|
for _, d := range dir {
|
||||||
log.Printf("content: %s\n", d.Name())
|
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")
|
log.Println("listing files in /src/docker")
|
||||||
dir, _ == os.ReadDir("/src/docker")
|
dir, err = os.ReadDir("/src/docker")
|
||||||
if err == nil {
|
if err == nil {
|
||||||
for _, d := range dir {
|
for _, d := range dir {
|
||||||
log.Printf("content: %s\n", d.Name())
|
log.Printf("content: %s\n", d.Name())
|
||||||
|
Loading…
Reference in New Issue
Block a user