mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-11-04 03:12:16 +08:00 
			
		
		
		
	formatting and case conventions
This commit is contained in:
		@@ -52,7 +52,7 @@ Push-Location -Path $cmderRoot
 | 
				
			|||||||
Delete-Existing "$cmderRoot\Version*"
 | 
					Delete-Existing "$cmderRoot\Version*"
 | 
				
			||||||
Delete-Existing "$cmderRoot\build\*"
 | 
					Delete-Existing "$cmderRoot\build\*"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
If(-not (Test-Path -PathType container $saveTo)) {
 | 
					if (-not (Test-Path -PathType container $saveTo)) {
 | 
				
			||||||
    (New-Item -ItemType Directory -Path $saveTo) | Out-Null
 | 
					    (New-Item -ItemType Directory -Path $saveTo) | Out-Null
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,13 +9,13 @@ function Ensure-Exists($path) {
 | 
				
			|||||||
function Ensure-Executable($command) {
 | 
					function Ensure-Executable($command) {
 | 
				
			||||||
    try { Get-Command $command -ErrorAction Stop > $null }
 | 
					    try { Get-Command $command -ErrorAction Stop > $null }
 | 
				
			||||||
    catch {
 | 
					    catch {
 | 
				
			||||||
        If( ($command -eq "7z") -and (Test-Path "$env:programfiles\7-zip\7z.exe") ){
 | 
					        if( ($command -eq "7z") -and (Test-Path "$env:programfiles\7-zip\7z.exe") ){
 | 
				
			||||||
            Set-Alias -Name "7z" -Value "$env:programfiles\7-zip\7z.exe" -Scope script
 | 
					            Set-Alias -Name "7z" -Value "$env:programfiles\7-zip\7z.exe" -Scope script
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        ElseIf( ($command -eq "7z") -and (Test-Path "$env:programw6432\7-zip\7z.exe") ) {
 | 
					        elseif( ($command -eq "7z") -and (Test-Path "$env:programw6432\7-zip\7z.exe") ) {
 | 
				
			||||||
            Set-Alias -Name "7z" -Value "$env:programw6432\7-zip\7z.exe" -Scope script
 | 
					            Set-Alias -Name "7z" -Value "$env:programw6432\7-zip\7z.exe" -Scope script
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        Else {
 | 
					        else {
 | 
				
			||||||
            Write-Error "Missing $command! Ensure it is installed and on in the PATH"
 | 
					            Write-Error "Missing $command! Ensure it is installed and on in the PATH"
 | 
				
			||||||
            exit 1
 | 
					            exit 1
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user