diff --git a/nf_core/components/update.py b/nf_core/components/update.py index c69cb076e..d6d8c3c07 100644 --- a/nf_core/components/update.py +++ b/nf_core/components/update.py @@ -103,14 +103,14 @@ def update(self, component=None, silent=False, updated=None, check_diff_exist=Tr self.modules_repo = ModulesRepo(remote_url, branch) component = component["name"] - if self.current_remote is None: - self.current_remote = self.modules_repo.remote_url - if self.current_remote == self.modules_repo.remote_url and self.sha is not None: self.current_sha = self.sha else: self.current_sha = None + if self.current_remote is None: + self.current_remote = self.modules_repo.remote_url + self.component = component if updated is None: updated = []