From 0d739f8a1a821ef5393b0e619983771b6ec17c3a Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Wed, 26 Oct 2022 10:34:07 +0200 Subject: [PATCH] Update check-ram.ps1 --- Scripts/check-ram.ps1 | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Scripts/check-ram.ps1 b/Scripts/check-ram.ps1 index 277b587b..cbba3445 100644 --- a/Scripts/check-ram.ps1 +++ b/Scripts/check-ram.ps1 @@ -51,11 +51,7 @@ try { $Speed = $Bank.Speed [float]$Voltage = $Bank.ConfiguredVoltage / 1000.0 $Manufacturer = $Bank.Manufacturer - if ("$($Bank.BankLabel)" -ne "") { - $Location = $Bank.BankLabel - } else { - $Location = $Bank.DeviceLocator - } + $Location = "$($Bank.BankLabel)/$($Bank.DeviceLocator)" "✅ $($Capacity)GB $Type ($($Speed)MHz, $($Voltage)V) at $Location by $Manufacturer." } } @@ -63,4 +59,4 @@ try { } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" exit 1 -} +} \ No newline at end of file