Skip to content

Commit

Permalink
Make update cmd work
Browse files Browse the repository at this point in the history
  • Loading branch information
bhou-crto committed Jan 3, 2025
1 parent 5044e55 commit 64da5e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/updater/cmd-updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ func (u *CmdUpdater) reachSyncSchedule() error {
if u.SyncPolicy == "never" {
return errors.New(fmt.Sprintf("Remote '%s': Sync policy is set to never, no update will be performed", u.LocalRepo.Name()))
}
if u.SyncPolicy == "always" {
return nil
}
// now load the sync timestamp
localRepoFolder, err := u.LocalRepo.RepositoryFolder()
if err != nil {
Expand Down

0 comments on commit 64da5e9

Please sign in to comment.