Skip to content

Commit 0a9e92d

Browse files
committed
smart_windows fix IV
1 parent e03783d commit 0a9e92d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

smart_windows.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if (-not $smartctlVersion -match '^smartctl 7') {
2222

2323
# Output for smart_posix_all
2424
Write-Host "<<<smart_posix_all:sep(0)>>>"
25-
$devices = smartctl --scan | ForEach-Object { $_.Split("#")[0].Trim() }
25+
$device = smartctl --scan | ForEach-Object { $_.Split(" ")[0].Trim() }
2626
foreach ($device in $devices) {
2727
$smartOutput = smartctl --all --json=c $device
2828
Write-Host $smartOutput

0 commit comments

Comments
 (0)