mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-10-31 01:12:11 +08:00 
			
		
		
		
	add verbose message with directory content
This commit is contained in:
		| @@ -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)") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user