Signed-off-by: Hugo Villeneuve <hugo@hugovil.com>
count=0
list=""
i=1
+width=0
+prefix_width=15
# Loop over source folder and add files to array
while IFS= read -r -d $'\0' file; do
f="$(basename ${file})"
file+=("${f}")
+ len=${#f}
+ if [ "${len}" -gt ${width} ]; then
+ width="${len}"
+ fi
+
status="off"
set +e
fi
rows=$((${count} + 7))
-width=40
+width=$((${prefix_width} + ${width}))
dialog --radiolist "HVK board selection" ${rows} ${width} ${count} ${list} 2> ${dialog_outfile}