Skip to content

Commit db63ab1

Browse files
fix(check): combine local path with slug for --local option
Previously --local used the path directly, now it combines base path with slug e.g., --local /path/to/checks cs50/python/hello -> /path/to/checks/cs50/python/hello
1 parent eba6fce commit db63ab1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bootcs/__main__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ def run_check(args):
189189

190190
# Determine check directory
191191
if args.local:
192-
check_dir = Path(args.local).resolve()
192+
# Combine local path with slug (e.g., /path/to/checks + cs50/python/hello)
193+
check_dir = Path(args.local).resolve() / slug
193194
else:
194195
# Try remote download first, then fall back to local search
195196
check_dir = find_check_dir(slug, language=language, force_update=force_update)

0 commit comments

Comments
 (0)