Skip to content

Commit

Permalink
Optimize list display
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Jul 18, 2024
1 parent 97acc8b commit 4069c03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/openwrt-install-amlogic
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ function display_database() {
echo "$line >>>"
else
# Process data lines, starting with id
IFS=':' read -r f1 f2 f3 f7 <<<"$line"
printf "%4s. %-50s%-10s%-s\n" "$f1" "$f2" "$f3" "$f7"
IFS=':' read -r -a fields <<<"$line"
printf "%5s %-48s%-10s%-s\n" "${fields[0]}" "${fields[1]}" "${fields[2]}" "${fields[7]}"
fi
done < <(echo "${model_database}")
}
Expand Down

0 comments on commit 4069c03

Please sign in to comment.