Skip to content

Commit a26837a

Browse files
committed
Can't compare relative paths to absolute paths
1 parent d98ab55 commit a26837a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ctfcli/cli/challenges.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ def sync(self, challenge: str = None, ignore: Union[str, Tuple[str]] = ()) -> in
673673

674674
click.secho(
675675
f"Syncing '{challenge_name}' ("
676-
f"{challenge_instance.challenge_file_path.relative_to(config.project_path)}"
676+
f"{challenge_instance.challenge_file_path.absolute().relative_to(config.project_path)}"
677677
f") ...",
678678
fg="blue",
679679
)
@@ -748,7 +748,7 @@ def deploy(
748748

749749
click.secho(
750750
f"Deploying challenge service '{challenge_name}' "
751-
f"({challenge_instance.challenge_file_path.relative_to(config.project_path)}) "
751+
f"({challenge_instance.challenge_file_path.absolute().relative_to(config.project_path)}) "
752752
f"with {deployment_handler.__class__.__name__} ...",
753753
fg="blue",
754754
)

0 commit comments

Comments
 (0)