mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-30 05:02:54 +08:00
no backticks
This commit is contained in:
parent
685cc01282
commit
547be34958
@ -3,9 +3,9 @@
|
|||||||
# REF: https://openzfsonosx.org/forum/viewtopic.php?f=26&t=3115
|
# REF: https://openzfsonosx.org/forum/viewtopic.php?f=26&t=3115
|
||||||
|
|
||||||
# NOTE Pass media- arg from 'zpool list -v'
|
# NOTE Pass media- arg from 'zpool list -v'
|
||||||
diskutil info `ls -l /var/run/disk/by-id | grep "$1" | awk -F" " '{print $11}' \
|
diskutil info $(ls -l /var/run/disk/by-id | grep "$1" | awk -F" " '{print $11}' \
|
||||||
| sed 's/s1//' \
|
| sed 's/s1//' \
|
||||||
| sed 's|\/dev\/||'` \
|
| sed 's|\/dev\/||') \
|
||||||
| egrep '(Device Identifier:)|(Whole:)|(Device / Media Name)|(Disk Size:)|(Device Block Size:)'
|
| egrep '(Device Identifier:)|(Whole:)|(Device / Media Name)|(Disk Size:)|(Device Block Size:)'
|
||||||
|
|
||||||
exit;
|
exit;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user