minor changes
added check for "|" removal character on long name app causing errorpull/2/head
parent
81a8202402
commit
5ba30d8c86
|
@ -183,7 +183,7 @@ function Get-WingetOutdated {
|
|||
# Now cycle in real package and split accordingly
|
||||
$upgradeList = @()
|
||||
For ($i = $fl + 2; $i -le $lines.Length; $i++){
|
||||
$line = $lines[$i]
|
||||
$line = $lines[$i].Replace("¦ ","")
|
||||
if ($line.Length -gt ($sourceStart+5) -and -not $line.StartsWith('-')){
|
||||
$software = [Software]::new()
|
||||
$software.Name = $line.Substring(0, $idStart).TrimEnd()
|
||||
|
|
Loading…
Reference in New Issue