Skip to content

Would Be Nice to Have More Verbose Logging in Fix*.ps1 #751

Closed
@DarwinJS

Description

@DarwinJS

It would be very helpful if these utility scripts emitted console output as to exactly which files they are changing (which reveals the list of files they have found) and what the changes are.

For example, in these two loops:

if(Test-Path ~\.ssh\config -PathType Leaf)
{
Fix-UserSSHConfigPermissions -FilePath ~\.ssh\config @psBoundParameters
}
Get-ChildItem ~\.ssh\* -Include "id_rsa","id_dsa" -ErrorAction Ignore | % {
Fix-UserKeyPermissions -FilePath $_.FullName @psBoundParameters
}

If console message suppression is desirable for some scenarios, please provide a switch to suppress messages that does not also suppress confirmation prompts. (related to #749)

I can submit a PR for this request if that is acceptable.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions