mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-07 23:41:32 +02:00
Fix 'text file busy' error
This commit is contained in:
@@ -160,6 +160,7 @@ func CreateFile(path string, reader io.Reader, perm os.FileMode) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer dest.Close()
|
||||
if _, err := io.Copy(dest, reader); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user