diff --git a/linux/ubuntu/scripts/pwsh.sh b/linux/ubuntu/scripts/pwsh.sh index 15b71c9..d408108 100755 --- a/linux/ubuntu/scripts/pwsh.sh +++ b/linux/ubuntu/scripts/pwsh.sh @@ -30,6 +30,8 @@ pwsh -v printf "\n\tšŸ‹ Installing PowerShell modules šŸ‹\t\n" modules=("MarkdownPS" "Pester" "PSScriptAnalyzer") +pwsh -nol -nop -c "Set-PSRepository -Name PSGallery -InstallationPolicy Trusted" + for mod in "${modules[@]}"; do printf "\n\tšŸ‹ Installing %s šŸ‹\t\n" "${mod}" pwsh -nol -nop -c "Install-Module -Name ${mod} -Scope AllUsers -SkipPublisherCheck -Force"