Skip to content

update FixHostFilePermissions.ps1 logic #792

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: latestw_all
Choose a base branch
from

Conversation

tgauth
Copy link
Collaborator

@tgauth tgauth commented Jul 7, 2025

@tgauth
Copy link
Collaborator Author

tgauth commented Jul 7, 2025

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tgauth tgauth requested review from vthiebaut10 and Copilot July 7, 2025 18:13
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adjusts the conditional scope in FixHostFilePermissions.ps1 so that the file‐permission repair only runs when the user profile path is present.

  • Expanded the if($properties) block to include file‐path and repair logic
  • Fixed misplaced closing brace to correctly wrap the conditional
Comments suppressed due to low confidence (1)

contrib/win32/openssh/FixHostFilePermissions.ps1:57

  • [nitpick] The added closing brace is not indented to match its opening if or ForEach-Object block. Adjust the indentation (e.g., two spaces) for consistent visual structure and readability.
}

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@tgauth
Copy link
Collaborator Author

tgauth commented Jul 7, 2025

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot bind argument to parameter 'Path' because it is an empty string.
1 participant