Fixed bug in numbering with console login diabled

pull/3/head
Joseph R. Nosie 14 years ago committed by Ghost1227
parent bf2311d216
commit 2e546b4655

@ -137,10 +137,10 @@ mainmenu() {
count=0
menu=$(
while [[ ${count} -lt ${#wmdisplist[@]} ]]; do
if ! $(checkyesno consolefirst); then
echo -ne "$((count+countfrom)) ${wmdisplist[${count}]} "
else
if $(checkyesno allowconsole) && $(checkyesno consolefirst); then
echo -ne "$((count+countfrom+1)) ${wmdisplist[${count}]} "
else
echo -ne "$((count+countfrom)) ${wmdisplist[${count}]} "
fi
let count=count+1
done

Loading…
Cancel
Save