File tree 3 files changed +13
-11
lines changed
3 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 35
35
. LINK
36
36
http://cmder.app/ - Project Home
37
37
#>
38
- [CmdletBinding (SupportsShouldProcess = $true )]
38
+ [CmdletBinding (SupportsShouldProcess = $true )]
39
39
Param (
40
40
# CmdletBinding will give us;
41
41
# -verbose switch to turn on logging and
@@ -108,12 +108,14 @@ if (-Not $noVendor) {
108
108
$ConEmuXmlSave = Join-Path $config " ConEmu.xml"
109
109
Write-Verbose " Backup '$ConEmuXml ' to '$ConEmuXmlSave '"
110
110
Copy-Item $ConEmuXml $ConEmuXmlSave
111
- } else { $ConEmuXml = " " }
112
- } else { $ConEmuXml = " " }
111
+ }
112
+ else { $ConEmuXml = " " }
113
+ }
114
+ else { $ConEmuXml = " " }
113
115
114
116
# Kill ssh-agent.exe if it is running from the $env:cmder_root we are building
115
117
foreach ($ssh_agent in $ (Get-Process ssh- agent - ErrorAction SilentlyContinue)) {
116
- if ([string ]$ ($ssh_agent.path ) -Match [string ]$cmder_root.replace (' \' , ' \\' )) {
118
+ if ([string ]$ ($ssh_agent.path ) -Match [string ]$cmder_root.replace (' \' , ' \\' )) {
117
119
Write-Verbose $ (" Stopping " + $ssh_agent.path + " !" )
118
120
Stop-Process $ssh_agent.id
119
121
}
Original file line number Diff line number Diff line change 22
22
https://github.com/cmderdev/cmder - Project Home
23
23
#>
24
24
25
- [CmdletBinding (SupportsShouldProcess = $true )]
25
+ [CmdletBinding (SupportsShouldProcess = $true )]
26
26
Param (
27
27
# CmdletBinding will give us;
28
28
# -verbose switch to turn on logging and
@@ -42,8 +42,8 @@ $ErrorActionPreference = "Stop"
42
42
Ensure- Executable " 7z"
43
43
44
44
$targets = @ {
45
- " cmder.7z" = " -t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -myx=7 -mqs=on" ;
46
- " cmder.zip" = " -mm=Deflate -mfb=128 -mpass=3" ;
45
+ " cmder.7z" = " -t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -myx=7 -mqs=on" ;
46
+ " cmder.zip" = " -mm=Deflate -mfb=128 -mpass=3" ;
47
47
" cmder_mini.zip" = " -xr!`" vendor\git-for-windows`" " ;
48
48
}
49
49
@@ -63,7 +63,7 @@ $version = Get-VersionStr
63
63
64
64
if ($PSCmdlet.MyInvocation.BoundParameters [" Verbose" ].IsPresent) {
65
65
Write-Verbose " Packing Cmder $version in $saveTo ..."
66
- $excluded = (Get-Content - Path " $cmderRoot \packignore" ) -Split [System.Environment ]::NewLine | Where-Object {$_ }
66
+ $excluded = (Get-Content - Path " $cmderRoot \packignore" ) -Split [System.Environment ]::NewLine | Where-Object { $_ }
67
67
Get-ChildItem $cmderRoot - Force - Exclude $excluded
68
68
}
69
69
Original file line number Diff line number Diff line change 25
25
. LINK
26
26
http://cmder.app/ - Project Home
27
27
#>
28
- [CmdletBinding (SupportsShouldProcess = $true )]
28
+ [CmdletBinding (SupportsShouldProcess = $true )]
29
29
Param (
30
30
# CmdletBinding will give us;
31
31
# -verbose switch to turn on logging and
@@ -158,10 +158,10 @@ function Fetch-DownloadUrl {
158
158
159
159
# Special case for archive downloads of repository
160
160
if (($null -eq $downloadLinks ) -Or (-Not $downloadLinks )) {
161
- if ((($p | % {$_.Trim (' /' )}) -Contains " archive" ) -And $info [0 ].tag_name) {
161
+ if ((($p | % { $_.Trim (' /' ) }) -Contains " archive" ) -And $info [0 ].tag_name) {
162
162
for ($i = 0 ; $i -lt $p.Length ; $i ++ ) {
163
163
if ($p [$i ].Trim(' /' ) -eq " archive" ) {
164
- $p [$i + 1 ] = $info [0 ].tag_name + " .zip"
164
+ $p [$i + 1 ] = $info [0 ].tag_name + " .zip"
165
165
$downloadLinks = $url.Scheme + " ://" + $url.Host + ($p -Join ' ' )
166
166
return $downloadLinks
167
167
}
You can’t perform that action at this time.
0 commit comments