Cosmetics

This commit is contained in:
Fabio Belavenuto
2022-07-26 17:28:01 -03:00
parent 2bceaea550
commit e678c2aa53
4 changed files with 8 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
ARPL_VERSION="0.3-alpha5"
ARPL_VERSION="0.3-alpha6"
# Define paths
TMP_PATH="/tmp"

View File

@@ -63,6 +63,7 @@ function modelMenu() {
M="`basename ${M}`"
M="${M::-4}"
PLATFORM=`readModelKey "${M}" "platform"`
DT="`readModelKey "${M}" "dt"`"
# Check id model is compatible with CPU
COMPATIBLE=1
for F in `readModelArray "${M}" "flags"`; do
@@ -71,9 +72,10 @@ function modelMenu() {
break
fi
done
[ ${COMPATIBLE} -eq 1 ] && ITEMS+="${M} ${PLATFORM} "
[ "${DT}" = "true" ] && DT="-DT" || DT=""
[ ${COMPATIBLE} -eq 1 ] && ITEMS+="${M} \Zb${PLATFORM}${DT}\Zn "
done < <(find "${MODEL_CONFIG_PATH}" -maxdepth 1 -name \*.yml | sort)
dialog --backtitle "`backtitle`" --menu "Choose the model" 0 0 0 \
dialog --backtitle "`backtitle`" --colors --menu "Choose the model" 0 0 0 \
${ITEMS} 2>${TMP_PATH}/resp
[ $? -ne 0 ] && return
resp=$(<${TMP_PATH}/resp)