Skip to content

Commit

Permalink
Changed encoding serttings as suggested in #138 (#149)
Browse files Browse the repository at this point in the history
* Update azure-pipelines.yml for Azure Pipelines

* Update azure-pipelines.yml for Azure Pipelines

* Fix according to Sampler 0.116.0

* Changed autocrlf scope as suggested in #138
  • Loading branch information
raandree authored Dec 5, 2022
1 parent fdd283f commit c656dbf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Needed for publishing of examples, build worker defaults to core.autocrlf=input.
* text eol=autocrlf
/source/** text eol=autocrlf
/Exercises/** text eol=autocrlf
/Lab/** text eol=autocrlf
/Test/** text eol=autocrlf

*.mof text eol=crlf
*.sh text eol=lf
Expand Down
9 changes: 9 additions & 0 deletions Resolve-Dependency.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ if (-not $powerShellGetModule -and -not $nuGetProvider)
{
$providerBootstrapParameters.Add('Scope', $Scope)
}

'AllowPrerelease'
{
$providerBootstrapParameters.Add('AllowPrerelease', $AllowPrerelease)
}
}

if ($AllowPrerelease)
Expand Down Expand Up @@ -307,6 +312,10 @@ try
{
$installPowerShellGetParameters.Add('Credential', $GalleryCredential)
}
'AllowPrerelease'
{
$installPowerShellGetParameters.Add('AllowPrerelease', $AllowPrerelease)
}
}

Write-Progress -Activity 'Bootstrap:' -PercentComplete 60 -CurrentOperation 'Installing newer version of PowerShellGet'
Expand Down

0 comments on commit c656dbf

Please sign in to comment.