This commit is contained in:
teldra 2021-05-09 12:58:08 +02:00
parent d0d7bd8cfe
commit 33dfd1f506
1 changed files with 2 additions and 2 deletions

View File

@ -16,10 +16,10 @@ for i in $(find /dev/disk/by-id/ -type l -printf "%P\n"|grep -v "part" |tac); do
if [[ "${name}" == *"/dev/sr"* ]]; then
continue
fi
if [[ ! "${name}" == "ata-"* ]]; then
if [[ "${name}" == "ata-"* ]]; then
continue
fi
if [[ ! "${name}" == "usb-"* ]]; then
if [[ "${name}" == "usb-"* ]]; then
continue
fi
index=$(( index + 1 ))