Skip to content

Commit f878ea1

Browse files
committed
Fix install-restic: match versioned exe name in zip
1 parent 14aff1b commit f878ea1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/install/restic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func extractResticFromZip(zipData []byte, destPath string) error {
7474
}
7575

7676
for _, f := range reader.File {
77-
if strings.HasSuffix(strings.ToLower(f.Name), "restic.exe") {
77+
if strings.HasSuffix(strings.ToLower(f.Name), ".exe") {
7878
rc, err := f.Open()
7979
if err != nil {
8080
return fmt.Errorf("opening %s in zip: %w", f.Name, err)

0 commit comments

Comments
 (0)