From 09b7973bab55ff72f7148d7b13cea33c9d4bea62 Mon Sep 17 00:00:00 2001 From: John Thiltges Date: Tue, 25 Apr 2023 14:48:09 -0500 Subject: [PATCH] Add full support for glob patterns --- cvmfs-singularity-sync | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cvmfs-singularity-sync b/cvmfs-singularity-sync index acc6db9..cb6a146 100755 --- a/cvmfs-singularity-sync +++ b/cvmfs-singularity-sync @@ -160,7 +160,8 @@ def main(): registry, namespace, repo_name, repo_tag = parse_image(image) print("Working on image: {}".format(image)) - if '*' in repo_tag: # Treat wildcards as a glob + # Treat wildcards as a glob + if any(pat in repo_tag for pat in ['*', '?', '[']): try: tag_names = get_tags(namespace, repo_name, registry=registry, auth=doauth) except Exception as ex: