Skip to content

Commit c3c197b

Browse files
committed
Use as_posix
1 parent 27f4090 commit c3c197b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/user_management.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def refresh_git_ubuntu_source(user: str, home_dir: str, source_url: str) -> bool
157157
clone_dir = pathops.LocalPath(directory_path, "live-allowlist-denylist-source")
158158

159159
if clone_dir.is_dir():
160-
logger.info("Updating existing git-ubuntu source in %s", clone_dir)
160+
logger.info("Updating existing git-ubuntu source in %s", clone_dir.as_posix())
161161

162162
# Update origin to the current source url
163163
if not _run_command_as_user(
@@ -174,8 +174,8 @@ def refresh_git_ubuntu_source(user: str, home_dir: str, source_url: str) -> bool
174174
return True
175175

176176
# Clone the repository
177-
logger.info("Cloning git-ubuntu source to %s", clone_dir)
178-
if not _run_command_as_user(user, f"git clone {source_url} {clone_dir}"):
177+
logger.info("Cloning git-ubuntu source to %s", clone_dir.as_posix())
178+
if not _run_command_as_user(user, f"git clone {source_url} {clone_dir.as_posix()}"):
179179
logger.error("Failed to clone git-ubuntu source.")
180180
return False
181181

0 commit comments

Comments
 (0)