Skip to content

Commit

Permalink
APPS-1465
Browse files Browse the repository at this point in the history
- fix asb reader init
  • Loading branch information
filkeith committed Jan 20, 2025
1 parent 0cd0e45 commit c984274
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cmd/internal/app/asrestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,12 @@ func splitList(list []string) (asbList, asbxList []string, err error) {
}
}

// We sort asb files by prefix and suffix to restore them in the correct order.
asbList, err = util.SortBackupFiles(asbList)
if err != nil {
return nil, nil, fmt.Errorf("failed to sort asb files: %w", err)
if len(asbxList) > 0 {
// We sort asb files by prefix and suffix to restore them in the correct order.
asbxList, err = util.SortBackupFiles(asbxList)
if err != nil {
return nil, nil, fmt.Errorf("failed to sort asb files: %w", err)
}
}

return asbList, asbxList, nil
Expand Down

0 comments on commit c984274

Please sign in to comment.