From 7f1f8541c17a752b973ac99770a2cc34f5a39cda Mon Sep 17 00:00:00 2001 From: teldra Date: Sun, 9 May 2021 21:31:39 +0200 Subject: [PATCH] fixes --- step1/10-disk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/step1/10-disk b/step1/10-disk index 114f89c..8c09f62 100644 --- a/step1/10-disk +++ b/step1/10-disk @@ -16,9 +16,9 @@ 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 [[ ! "${i}" == "usb"* ]] && [[ ! "${i}" == "ata"* ]]; then -# continue -# fi + if [[ ! "${i}" == "usb"* ]] && [[ ! "${i}" == "ata"* ]]; then + continue + fi index=$(( index + 1 )) size="$(fdisk -l "${name}" | head -n1 | awk '{print $3}')" size=$(awk "BEGIN { printf(\"%.0f\n\", ${size}); }")