Merge pull request #4163 from MichaelEischer/fix-windows-self-upgrade

self-upgrade: Fix handling of `--output` on windows
This commit is contained in:
Michael Eischer
2023-01-26 22:40:36 +01:00
committed by GitHub
3 changed files with 63 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
Bugfix: Repair `self-update --output new-file.exe` on Windows
Since restic 0.14.0 `self-update` did not work when a custom output filename
was specified via the `--output` option. This has been fixed.
As a workaround either use an older restic version to run the self-update or
create an empty file with the output filename before updating e.g. using CMD:
`type nul > new-file.exe`
`restic self-update --output new-file.exe`
https://github.com/restic/restic/pull/4163
https://forum.restic.net/t/self-update-windows-started-failing-after-release-of-0-15/5836