Skip to content

Commit

Permalink
Skip over install if there is nothing to download
Browse files Browse the repository at this point in the history
  • Loading branch information
skchronicles committed Apr 5, 2024
1 parent 885b14a commit 8c8dbc1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions mpox-seek
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,20 @@ def install(sub_args):
) as fh:
install_config = json.load(fh)

content = [
f \
for f in install_config['install'] \
if install_config['install'][f].keys()
]

if not content:
print(
'Nothing to download! The pipeline is setup and ready to run.',
'\nThis pipeline already has all of its references bundled here:',
'\n • {0}'.format(os.path.join(__home__, 'resources'))
)
sys.exit(0)

# Try to install any missing targets
download_links = []
md5_checksums = []
Expand Down

0 comments on commit 8c8dbc1

Please sign in to comment.