diff --git a/scripts/pack.ps1 b/scripts/pack.ps1 index 5473ce1..df1d8b6 100644 --- a/scripts/pack.ps1 +++ b/scripts/pack.ps1 @@ -51,7 +51,7 @@ Delete-Existing "..\Version*" Delete-Existing "..\build\*" If(-not (Test-Path -PathType container $saveTo)) { - New-Item -ItemType Directory -Path $saveTo + (New-Item -ItemType Directory -Path $saveTo) | Out-Null } $saveTo = Resolve-Path $saveTo @@ -59,6 +59,11 @@ $saveTo = Resolve-Path $saveTo $version = Get-VersionStr (New-Item -ItemType file "$cmderRoot\Version $version") | Out-Null +if ($PSCmdlet.MyInvocation.BoundParameters["Verbose"].IsPresent) { + Write-Verbose "Packing Cmder $version in $saveTo..." + dir $cmderRoot +} + foreach ($t in $targets.GetEnumerator()) { Create-Archive $cmderRoot "$saveTo\$($t.Name)" $t.Value $hash = (Digest-Hash "$saveTo\$($t.Name)")