fixes
This commit is contained in:
parent
5debb33ef5
commit
3994cfae53
|
@ -7,11 +7,10 @@ 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}")"
|
||||
echo $i
|
||||
if [[ ! "${i}" =~ "ata-"* ]]; then
|
||||
if [[ "${i}" =~ "ata-"* ]]; then
|
||||
continue
|
||||
fi
|
||||
if [[ ! "${i}" =~ "usb-"* ]]; then
|
||||
if [[ "${i}" =~ "usb-"* ]]; then
|
||||
continue
|
||||
fi
|
||||
if [[ "${name}" =~ *"^[0-9]+$"* ]]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user