fixes
This commit is contained in:
parent
40a39cced3
commit
bdfb8eec26
|
@ -7,6 +7,12 @@ declare -A disk=()
|
|||
index=0
|
||||
for i in $(find /dev/disk/by-id/ -type l -printf "%P\n"|grep -v "part" |tac); do
|
||||
name="$(readlink -f /dev/disk/by-id/"${i}")"
|
||||
if [[ ! "${id}" =~ "ata-"* ]]; then
|
||||
continue
|
||||
fi
|
||||
if [[ ! "${id}" =~ "usb-"* ]]; then
|
||||
continue
|
||||
fi
|
||||
if [[ "${name}" =~ *"^[0-9]+$"* ]]; then
|
||||
continue
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user