mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Context caps
This commit is contained in:
1 parent
9007ba4062
commit
bf22db9d68
1 file changed
+1
-1
@@ -9,7 +9,7 @@ This is accomplished by parsing the output of an existing command, *parted -l* i
|
||||
|
||||
```PowerShell
|
||||
Function Get-DiskInfo {
|
||||
$disks = sudo parted -l | Select-String "Disk /dev/sd*" -context 1,0
|
||||
$disks = sudo parted -l | Select-String "Disk /dev/sd*" -Context 1,0
|
||||
$diskinfo = @()
|
||||
foreach ($disk in $disks) {
|
||||
$diskline1 = $disk.ToString().Split("`n")[0].ToString().Replace(' Model: ','')
|
||||
|
||||
Reference in new issue
Block a user