Skip to content

Commit

Permalink
Merge branch 'update-modules-install' of github.com:ErikDanielsson/to…
Browse files Browse the repository at this point in the history
…ols into update-modules-install
  • Loading branch information
ErikDanielsson committed Jun 23, 2021
2 parents 2586097 + e39ff09 commit 4dce523
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nf_core/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ def list(ctx, pipeline_dir, json):
@click.argument("pipeline_dir", type=click.Path(exists=True), required=True, metavar="<pipeline directory>")
@click.option("-t", "--tool", type=str, metavar="<tool> or <tool/subtool>")
@click.option("-l", "--latest", is_flag=True, default=False, help="Install the latest version of the module")
@click.option("--force", is_flag=True, default=False, help="Force installation of module if module already exists")
@click.option("--sha", type=str, metavar="<commit sha>", help="Install module at commit SHA")
@click.option("-f", "--force", is_flag=True, default=False, help="Force installation of module if module already exists")
@click.option("-s", "--sha", type=str, metavar="<commit sha>", help="Install module at commit SHA")
def install(ctx, pipeline_dir, tool, latest, force, sha):
"""
Add a DSL2 software wrapper module to a pipeline.
Expand Down
2 changes: 1 addition & 1 deletion nf_core/modules/pipeline_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def install(self, module=None):
if not self.check_module_files_installed(module, module_dir):
return False

if self.sha is not None:
if self.sha:
if not current_entry is None and not self.force:
return False
if self.download_module_file(module, self.sha, install_folder, module_dir):
Expand Down

0 comments on commit 4dce523

Please sign in to comment.