Skip to content

Better way to check if AcceptAllTweaks or AcceptRecommendedTweaks switches are active #5

@EndCod3r

Description

@EndCod3r

The way I wrote the check for those switches repeats itself for every tweak and there's probably a better way to do it but I just don't know how I should do it.

if ($AcceptRecommendedTweaks) {
    $userinput = 'y'
} else {$userinput = Read-Host -Prompt '$PROMPT'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions