arc: fix syntax

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2024-05-02 21:05:51 +02:00
parent 856a57ddc5
commit b56817e224

View File

@@ -127,9 +127,9 @@ function arcModel() {
--infobox "Reading Models" 3 20
echo -n "" >"${TMP_PATH}/modellist"
while read -r M; do
ID=$(readModelKey "${M}" "id")
[ "${M}" = "serials" ] && continue
Y="$(readModelKey "${M}" "disks")"
echo "${ID} ${Y}" >>"${TMP_PATH}/modellist"
echo "${M} ${Y}" >>"${TMP_PATH}/modellist"
done <<<$(find "${MODEL_CONFIG_PATH}" -maxdepth 1 -name \*.yml | sed 's/.*\///; s/\.yml//')
while true; do
echo -n "" >"${TMP_PATH}/menu"