From 3994cfae53ed157a998ad576e106f77cf88c0b86 Mon Sep 17 00:00:00 2001 From: teldra Date: Sun, 9 May 2021 19:17:06 +0200 Subject: [PATCH] fixes --- modules/10-disk/config | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/10-disk/config b/modules/10-disk/config index 8dd130e..d4e4dd3 100644 --- a/modules/10-disk/config +++ b/modules/10-disk/config @@ -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