We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e8a5a3 commit 85d76afCopy full SHA for 85d76af
apply.go
@@ -118,7 +118,8 @@ func Apply(update io.Reader, opts Options) error {
118
if err != nil {
119
return err
120
}
121
-
+ //don't call fp.Sync(). system power off ,file will lost
122
+ fp.Sync()
123
// if we don't call fp.Close(), windows won't let us move the new executable
124
// because the file will still be "in use"
125
fp.Close()
0 commit comments