Skip to content

Commit 0721012

Browse files
committed
Properly list all ctf templates
1 parent 9a55b9b commit 0721012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ctfcli/cli/templates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def uninstall(self, template_name):
1919

2020
def list(self):
2121
template_dir = get_template_dir() + "/"
22-
for template in glob(f"{template_dir}/**/*/cookiecutter.json"):
22+
for template in glob(f"{template_dir}/**/*/cookiecutter.json", recursive=True):
2323
# Remove prefix of template_dir and remove suffix of /cookiecutter.json
2424
template = template[len(template_dir) : -len("/cookiecutter.json")]
2525
print(template)

0 commit comments

Comments
 (0)