Skip to content

Commit

Permalink
updated build.ps1, psake.ps1 and Start-GSDriveFileUpload.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
scrthq committed Oct 7, 2019
1 parent 342747e commit d984abd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
9 changes: 8 additions & 1 deletion PSGSuite/Public/Drive/Start-GSDriveFileUpload.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,14 @@ function Start-GSDriveFileUpload {
}
finally {
if ($Host.Name -and $Host.Name -notlike "Windows*PowerShell*ISE*") {
[System.Console]::CursorVisible = $true
try {
[System.Console]::CursorVisible = $true
}
catch {
if ($Error[0].Exception.Message -eq 'Exception setting "CursorVisible": "The handle is invalid."') {
$Global:Error.Remove($Global:Error[0])
}
}
}
Stop-GSDriveFileUpload @successParam
}
Expand Down
8 changes: 0 additions & 8 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,6 @@ else {
" + NuGet API key is not null : $($null -ne $env:NugetApiKey)`n" +
" + Commit message matches '!deploy' : $($env:BUILD_SOURCEVERSIONMESSAGE -match '!deploy') [$env:BUILD_SOURCEVERSIONMESSAGE]"| Write-Host -ForegroundColor Green
}
<#
if (-not (Get-Module BuildHelpers -ListAvailable | Where-Object {$_.Version -eq '2.0.1'})) {
Write-Verbose "Installing BuildHelpers v2.0.1" -Verbose
Install-Module 'BuildHelpers' -RequiredVersion 2.0.1 -Scope CurrentUser -Repository PSGallery -AllowClobber -SkipPublisherCheck -Force
}
Write-Verbose "Importing BuildHelpers v2.0.1" -Verbose
Import-Module 'BuildHelpers' -RequiredVersion 2.0.1
#>
Write-BuildLog "Resolving necessary modules"
$moduleDependencies.Name | Resolve-Module -UpdateModules -Verbose
Write-BuildLog "Modules resolved"
Expand Down
2 changes: 1 addition & 1 deletion psake.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ Task Import -Depends Compile {
} -description 'Imports the newly compiled module'

$pesterScriptBlock = {
'Pester' | Resolve-Module
'Pester' | Resolve-Module -UpdateModules -Verbose
Push-Location
Set-Location -PassThru $outputModDir
if (-not $ENV:BHProjectPath) {
Expand Down

0 comments on commit d984abd

Please sign in to comment.