Closed mbl-35 closed 2 years ago
When following command :
wslctl registry update
and the file already exists in the user %LOCALAPPDATA%/Wslctl/Registry/register.json, its content is not correctly copied from remote.
v-2.0.4
We use OpenWrite method in FileUtils.psm1. As said at file-openwrite-appends-instead-of-wiping-contents, the file is not truncated when it exists.
OpenWrite
FileUtils.psm1
Then :
When following command :
and the file already exists in the user %LOCALAPPDATA%/Wslctl/Registry/register.json, its content is not correctly copied from remote.
v-2.0.4