Merge pull request #538 from wesley800/development

remove exit from ssh_setup.*sh
This commit is contained in:
Christian Goll
2022-09-20 11:02:50 +02:00
committed by GitHub
3 changed files with 3 additions and 13 deletions

View File

@@ -27,7 +27,7 @@ func CopyFile(src string, dst string) error {
return err
}
dstFD, err := os.OpenFile(dst, os.O_RDWR|os.O_CREATE, srcInfo.Mode())
dstFD, err := os.OpenFile(dst, os.O_RDWR|os.O_CREATE|os.O_TRUNC, srcInfo.Mode())
if err != nil {
wwlog.Error("Could not create destination file %s: %s\n", dst, err)
return err